Skip to content

Commit

Permalink
added reads to emit
Browse files Browse the repository at this point in the history
  • Loading branch information
erinyoung committed May 17, 2024
1 parent edb6108 commit da95927
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions modules/local/spades.nf
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
process spades {
tag "${meta.id}"
label "process_high"
publishDir params.outdir, mode: 'copy', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
publishDir path: params.outdir, mode: 'copy', pattern: 'logs/*/*log'
publishDir path: params.outdir, mode: 'copy', pattern: 'spades/*'
publishDir path: params.outdir, mode: 'copy', pattern: 'spades/*/*'
container 'staphb/spades:3.15.5'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
time '5h'
Expand All @@ -10,10 +12,11 @@ process spades {
tuple val(meta), file(reads)

output:
path "spades/*/*", emit: files
path "spades/*/*", emit: files
tuple val(meta), file("contigs/*_contigs.fa"), optional: true, emit: contigs
path "logs/${task.process}/*.log", emit: log
path "versions.yml", emit: versions
tuple val(meta), file("contigs/*_contigs.fa"), file(reads), optional: true, emit: reads_contigs
path "logs/${task.process}/*.log", emit: log
path "versions.yml", emit: versions

when:
task.ext.when == null || task.ext.when
Expand Down

0 comments on commit da95927

Please sign in to comment.