From 3cb2dfbd0a1e8c706c6923e725201bd0fea3abce Mon Sep 17 00:00:00 2001 From: Andrew Reid Date: Wed, 20 Dec 2023 11:02:50 -0500 Subject: [PATCH] Adding an iterative snakefile. No cluster shenanigans in this one, just straight-up iteration, maybe a useful intermediate step. --- episodes/files/Snakefile_iterative | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 episodes/files/Snakefile_iterative 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}'