Hi, I would like to use Snakemake in my variant annotation pipeline. But Annovar don't have clearly defined file output option (I can assign only output folder and annovar going to attach to filename: "multianno.hg19), I can't describe final annovar output in "rule all", since it differs from the output parameters in rule for annovar tool. Help, please solve this problem. Thank you!
You specify output files that are created, and use a params value for your shell code.
Example below for mosdepth:
I specify that mosdepth/{sample}.mosdepth.global.dist.txt will be created, but as output value for my shell command I use mosdepth/{params.prefix}, which takes the sample name.
Mosdepth will create mosdepth/{sample}.mosdepth.global.dist.txt