I am a novice snakemake/programming user and I am still trying to figure some things out. So bare with me!
I am trying to make a pipeline with various steps that run different programs. In each step I would like to give the option to the user to choose which program to use.
Thank you guys for your input! Your suggestions helped a lot!
I am sure that I will have more questions in the near future, but I managed to move forward with my pipeline.
I also suggest that if there many parameters to be set by the user, use --configfile instead of --config. But it's basically the same. This page should have the documentation you need.
As @gb and @liorglic mentioned, using --config or --configfile is a good option. I personally prefer to leave a footprint of what was done in the file names. For example,
Then I use the output file name to direct Snakemake on what rules to use.
To combine trimmomatic and star:
(base) [~/Downloads/scratch/biostar/tmp]$ snakemake my_sample.trimmomatic.star.txt --summary
Building DAG of jobs...
output_file date rule version log-file(s) status plan
my_sample.trimmomatic.star.txt - - - - missing update pending
my_sample.trimmomatic.txt - - - - missing update pending
To combine trim_galore and bowtie:
(base) [~/Downloads/scratch/biostar/tmp]$ snakemake my_sample.trim_galore.bowtie.txt --summary
Building DAG of jobs...
output_file date rule version log-file(s) status plan
my_sample.trim_galore.bowtie.txt - - - - missing update pending
my_sample.trim_galore.txt - - - - missing update pending
Hello,
Thank you guys for your input! Your suggestions helped a lot! I am sure that I will have more questions in the near future, but I managed to move forward with my pipeline.
Until next time!
Thanks