How to do a partial expand in Snakemake?

后端 未结 3 1345
眼角桃花
眼角桃花 2021-01-13 13:29

I\'m trying to first generate 4 files, for the LETTERS x NUMS combinations, then summarize over the NUMS to obtain one file per element in LETTERS:

LETTERS =         


        
3条回答
  •  逝去的感伤
    2021-01-13 13:40

    Partial expand is possible using allow_missing=True.

    For example:

    expand("text_{letter}_{num}.txt", num=NUMS, allow_missing=True)
    
    
    ["text_{letter}_1.txt", "text_{letter}_2.txt"]
    

提交回复
热议问题