Skip to content
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

Workflow outputs (first preview) #27

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
13 changes: 13 additions & 0 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,16 @@ workflow {
workflow.onComplete {
log.info ( workflow.success ? "\nDone! Open the following report in your browser --> $params.outdir/multiqc_report.html\n" : "Oops .. something went wrong" )
}

output {
directory params.outdir
mode 'copy'

'fastqc' {
path '.'
}
pditommaso marked this conversation as resolved.
Show resolved Hide resolved

'multiqc' {
path '.'
}
pditommaso marked this conversation as resolved.
Show resolved Hide resolved
}
7 changes: 4 additions & 3 deletions modules/fastqc/main.nf
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
params.outdir = 'results'

process FASTQC {
tag "FASTQC on $sample_id"
conda 'fastqc=0.12.1'
publishDir params.outdir, mode:'copy'

input:
tuple val(sample_id), path(reads)

output:
path "fastqc_${sample_id}_logs"
path "fastqc_${sample_id}_logs", emit: logs

publish:
logs >> 'fastqc'

script:
"""
Expand Down
7 changes: 4 additions & 3 deletions modules/multiqc/main.nf
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
params.outdir = 'results'

process MULTIQC {
conda 'multiqc=1.17'
publishDir params.outdir, mode:'copy'

input:
path('*')
path(config)

output:
path('multiqc_report.html')
path('multiqc_report.html'), emit: report

publish:
report >> 'multiqc'

script:
"""
Expand Down
Loading