zhanxw
2020-05-03 19:14:01 UTC
我的目標是使用 step1
, step2
這兩個規則來處理兩個示例,分別是 S1
和 S2
Snakemake文件類似於:
SAMPLES = ['S1','S2']規則全部:輸入:expand(“ {sample} .done”,sample = SAMPLES)規則step1:輸入:“ {sample} .step1”輸出:“ {sample} .step1.done” shell:“ touch {output}”規則step2:輸入:“ {sample} .step1.done”輸出:“ {sample} .done” shell :“ touch {output}”
當前執行順序是:
S1上S1上的step1 step2上S2上S1上step2上S2 > 是否可以將順序更改為:
S1上的step1 S1上的step1 S2上的S2step2上的step1
基本上,我想完成 S1
,然後是 S2
。是否可以在Snakemake中指定執行順序?