Skip to content

Commit

Permalink
Adding an iterative snakefile.
Browse files Browse the repository at this point in the history
No cluster shenanigans in this one, just straight-up iteration,
maybe a useful intermediate step.
  • Loading branch information
reid-a committed Dec 20, 2023
1 parent 2564dc3 commit 3cb2dfb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions episodes/files/Snakefile_iterative
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#
# Iterative example.
#
NAMES=['one','two','three']
#
rule done:
input: expand('{name}.out',name=NAMES)
output: 'done.out'
shell: 'echo "Done!" > done.out'
rule iterate:
input:
output: '{sample}.out'
shell: 'echo {output} > {output}'

0 comments on commit 3cb2dfb

Please sign in to comment.