Skip to content

Commit

Permalink
Update process outputs
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Sherman <[email protected]>
  • Loading branch information
bentsherman committed Dec 9, 2023
1 parent 6250d42 commit 9cef76a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
5 changes: 3 additions & 2 deletions modules/fastqc/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ params.outdir = 'results'
path { sample.reads }
},
outputs={
path { "fastqc_${sample.id}_logs" }
path '$file0', { "fastqc_${sample.id}_logs" }
emit { path('$file0') }
},
script=true
)
def FASTQC(Sample sample) {
"""
fastqc.sh "$sample.id" "${sample.reads.join(' ')}"
fastqc.sh "$sample.id" "$sample.reads"
"""
}
5 changes: 3 additions & 2 deletions modules/index/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
conda 'salmon=1.10.2'
},
inputs={
path { transcriptome }
path { transcriptome }
},
outputs={
path 'index'
path '$file0', 'index'
emit { path('$file0') }
},
script=true
)
Expand Down
3 changes: 2 additions & 1 deletion modules/multiqc/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ params.outdir = 'results'
path { config }
},
outputs={
path('multiqc_report.html')
path '$file0', 'multiqc_report.html'
emit { path('$file0') }
},
script=true
)
Expand Down
3 changes: 2 additions & 1 deletion modules/quant/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
path { pair.reads }
},
outputs={
path { pair.id }
path '$file0', { pair.id }
emit { path('$file0') }
},
script=true
)
Expand Down

0 comments on commit 9cef76a

Please sign in to comment.