How to select all files from one sample?
问题 I have a problem figuring out how to make the input directive only select all {samples} files in the rule below. rule MarkDup: input: expand("Outputs/MergeBamAlignment/{samples}_{lanes}_{flowcells}.merged.bam", zip, samples=samples['sample'], lanes=samples['lane'], flowcells=samples['flowcell']), output: bam = "Outputs/MarkDuplicates/{samples}_markedDuplicates.bam", metrics = "Outputs/MarkDuplicates/{samples}_markedDuplicates.metrics", shell: "gatk --java-options -Djava.io.tempdir=`pwd`/tmp \