Replies: 3 comments
-
Although its probably a bit hacky using the each qualifier worked for me in a similar scenario. Using it in the declaration of the input channel for TEAID_END will wait for all upstream processes of that channel to finish before running the first TEAID_END instance. Although you might have to transform the |
Beta Was this translation helpful? Give feedback.
-
You need to use channels to create dependencies between the upstream process and your final process. For example, feed the output channels of each upstream process into a If the final process doesn't actually need the upstream outputs, you can also create a state dependency as shown in the patterns docs. |
Beta Was this translation helpful? Give feedback.
-
I Use nextflow.enable.dsl=2
params.raw = "data/*.fastq.gz"
params.outdir="results/01_rawfastqc"
process FASTQC {
publishDir "$params.outdir", mode: 'copy'
input:
path reads
output:
file "*"
script:
"""
fastqc -t 10 ${reads}
"""
}
process MULTIQC {
publishDir "$params.outdir", mode: 'copy'
input:
file x
output:
file "multiqc_report.html"
file "multiqc_data"
script:
"""
multiqc -f $x
"""
}
workflow {
Channel.fromPath(params.raw, checkIfExists: true )| FASTQC | collect | MULTIQC
}
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This may have been asked previously but I can't find the topic if it has been.
How does one hold a process until the previous processes have completed?
In the workflow below, I need the final process, TEAID_END, to wait for all output files from all previous processes are complete before executing. As currently written, TEAID_END starts while the previous processes are running and, as a result, is archiving output before it's ready.
The 'when' option (https://www.nextflow.io/docs/latest/process.html#when) looks like it could be helpful but I'm unable to figure out how to implement it.
Beta Was this translation helpful? Give feedback.
All reactions