【发布时间】:2021-04-16 08:26:11
【问题描述】:
我有以下基本的 snakemake 设置:
rule step1:
"""
The output will contain a list of GENEs in a txt file.
"""
input: "input1.txt"
output: "output1.txt"
shell:
"""
analysis1.R {input} {output}
"""
rule step2:
"""
Analysis step2.
"""
input: "input2.txt"
output: "output2.txt"
shell:
"""
analysis2.py {input} {output}
"""
rule step3:
"""
GENE should be coming from the step1 output file, with a GENE name on each
line.
"""
input: rules.step2.output
output: "output3-GENE.txt"
shell:
"""
analysis3.py -i {input} -o {output} -p GENE
"""
我在步骤 1 中为步骤 3 生成一个包含基因(参数)列表的文件,在步骤 2 中生成另一个文件。我想做的是将 step3 运行的次数与我在 output1.txt 中的行一样多,其中行的内容是 step3 的参数,它也应该是输出文件名的一部分,但我不能换行我的头绕着它。有任何想法吗?感谢您的帮助!
【问题讨论】: