-
Notifications
You must be signed in to change notification settings - Fork 659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish operator #1540
Comments
I think you can mv and cp commands after your 1st line in script Something like;
|
I think |
I also feel like a nextflow.enable.dsl = 2
process fastqc {
publishDir 'QC'
input: file(fastq)
output: file("*.{html,zip}")
script: "fastqc $fastq"
}
process multiqc {
publishDir 'QC'
input: file(fqc_outputs)
output: file("*.html")
script: "multiqc ."
}
process fastp {
// snip
}
workflow qc {
take: reads
main: reads | fastqc | collect | multiqc
}
workflow trimming {
take: reads
main: reads | fastp | qc
}
workflow {
Channel.fromPath(params.reads) | (qc & trimming)
} In the above example, all files generated by EDIT: I just found out the variable publishDir "QC/${task.process.replaceAll(':', '-')}" I could not find it in the documentation though |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
New feature
Publish operator
Usage scenario
The current publishDir attribute of processes is not flexible enough. Please consider the following example:
Now, what if I want to publish out1.txt using move mode, out2.txt using copy mode and output (but not pubish) out3.txt? The current approach is not flexible enough and it becomes complex. I think it would be good t replace the publishDir parameter with a publish operator,like this:
And then:
The text was updated successfully, but these errors were encountered: