Process multiple samples at once #4679
Closed
justsharan
started this conversation in
General
Replies: 1 comment 1 reply
-
Nextflow will by default try to run them in parallel. If it's not doing that, it may be due to your OS, available resources and so on. Trying in a powerful machine with a workload manager may make it easier for you to realize in real scenario Nextflow making use of parallelization. Task batching is kind of the opposite. Instead of having 20 tasks in parallel, you'd have 5, for example, as samples would be concentrated in fewer tasks. |
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
-
I have a bunch of reads in a folder like this:
and I have a pipeline:
As it stands, BWA_ALIGNMENT runs each sample after another, but I'd like it to run all 4 (or any number of samples) in parallel... how can I do this?
When I googled it, I found out about task batching, but I'm not sure how it would work if I need to pass in that other argument (the bwa_index one) as well.
I was also informed of
maxForks
when reading through past discussions, but when I tried addingmaxForks 5
to the BWA_ALIGNMENT process, it changed nothing... it was still running the samples through the process one after another.Beta Was this translation helpful? Give feedback.
All reactions