How do I interpolate wildcards into a shell command?

后端 未结 1 536
遇见更好的自我
遇见更好的自我 2021-01-28 00:53

I\'m trying to build a Snakemake pipeline, but I\'m confused why filename wildcards work for input and output, but not for shell. For exam

相关标签:
1条回答
  • 2021-01-28 01:31

    Wildcards are available via {wildcards.XXXX}. source

    rule align:
        input: "{sample}.txt"
        output: "{sample}.out"
        shell: "touch {wildcards.sample}.out"
    
    0 讨论(0)
提交回复
热议问题