diff --git a/episodes/files/Snakefile_iterative b/episodes/files/Snakefile_iterative new file mode 100644 index 0000000..8fe13f8 --- /dev/null +++ b/episodes/files/Snakefile_iterative @@ -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}'