Looping over same data #2308
Unanswered
RenzoTale88
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Similar to my response to Issue #2042, I would suggest using a bash wrapper script, e.g.
In nextflow.config, include default values (maxN will get overwritten by whatever is used in the command line) with
In repeat.nf:
It seems Nextflow isn’t designed with iteration in mind, however, I've found that using a bash wrapper script can easily overcome this limitation, while retaining all of the advantages of parallelization etc. that Nextflow's DSL2 has to offer. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Good morning,
I am currently working on a workflow using the DSL2 syntax.
I need to iteratively run an analysis an arbitrary number of times defined by the user.
The problem is, the output of iteration num. 1 would be used to as input of iteration num. 2, and so on until reaching the number defined by the user. Is there a straight-forward way to do it?
Just to give an idea, I'm thinking of something in the line of:
Thank you in advance for any help,
Andrea
Beta Was this translation helpful? Give feedback.
All reactions