I have one input file that each line corresponds to one sequence which I need to do multiple checks on each of these sequences (doing it already with a python script, multiple functions). Some of these checks (functions) are not dependent to each other and can run concurrently. So I though to use Snakemake.
The problem is, most examples use so many input files and I only have one file but need to run different shells on each line of the file. Any ideas/examples someone came up with?
My second question is, some of the functions in my python script, don't print out files, but just return something. While I've seen most snakelike examples have an output (which is a file). How can I deal with those functions in Snakemake workflow? I mean how can I pass arguments between different functions/rule/... etc? I hope it's clear what I am asking. Thanks
I did go through the tutorials and some examples online
My python script looks like:
def function1(arg1, arg2): ... return List
def function2(arg1, arg2): .... [write a file]
def function3(arg1, arg2): ... print('blah blah')
def main(): function1(A, B) function2(A, B) function3(A, B)
if name== main: main()
I have no error messages. Yet don't know how to convert my script with so many functions to Snakemake workflow.