Skip to content

Instantly share code, notes, and snippets.

@wwood
Created November 2, 2022 02:48
Show Gist options
  • Save wwood/73d053fa03948f0b72a40e0998039b25 to your computer and use it in GitHub Desktop.
Save wwood/73d053fa03948f0b72a40e0998039b25 to your computer and use it in GitHub Desktop.
samples = [1,2,3,4,5]
rule all:
input:
"test.out"
rule a:
output:
"a/{sample}.out"
group: "mygroup"
shell:
"touch {output}"
rule b:
input:
"a/{sample}.out"
output:
"b/{sample}.out"
group: "mygroup"
shell:
"touch {output}"
rule c:
input:
expand("b/{sample}.out", sample=samples)
output:
"test.out"
shell:
"touch {output}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment