Skip to content

Commit

Permalink
added saveAs
Browse files Browse the repository at this point in the history
  • Loading branch information
erinyoung committed Mar 12, 2024
1 parent 020d94c commit 9d42197
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion modules/local/heatcluster.nf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
process heatcluster {
tag "HeatCluster"
label "process_single"
publishDir params.outdir, mode: 'copy'
publishDir params.outdir, mode: 'copy', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
container 'staphb/heatcluster:1.0.2c'
time '10m'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
Expand Down
2 changes: 1 addition & 1 deletion modules/local/iqtree2.nf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
process iqtree2 {
tag "Phylogenetic analysis"
label "process_high"
publishDir params.outdir, mode: 'copy'
publishDir params.outdir, mode: 'copy', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
container 'staphb/iqtree2:2.2.2.7'
time '24h'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
Expand Down
6 changes: 3 additions & 3 deletions modules/local/mash.nf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
process mash_sketch_fastq {
tag "${meta.id}"
label "process_medium"
publishDir params.outdir, mode: 'copy'
publishDir params.outdir, mode: 'copy', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
container 'staphb/mash:2.3'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
time '10m'
Expand Down Expand Up @@ -41,7 +41,7 @@ process mash_sketch_fastq {
process mash_sketch_fasta {
tag "${meta.id}"
label "process_medium"
publishDir params.outdir, mode: 'copy'
publishDir params.outdir, mode: 'copy', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
container 'staphb/mash:2.3'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
time '10m'
Expand Down Expand Up @@ -80,7 +80,7 @@ process mash_sketch_fasta {
process mash_dist {
tag "${meta.id}"
label "process_medium"
publishDir params.outdir, mode: 'copy'
publishDir params.outdir, mode: 'copy', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
container 'staphb/mash:2.3'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
time '10m'
Expand Down
2 changes: 1 addition & 1 deletion modules/local/mashtree.nf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
process mashtree {
tag "Phylogenetic analysis"
label "process_medium"
publishDir params.outdir, mode: 'copy'
publishDir params.outdir, mode: 'copy', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
container 'staphb/mashtree:1.4.6'
stageInMode 'copy'
time '4h'
Expand Down
2 changes: 1 addition & 1 deletion modules/local/multiqc.nf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ process multiqc {
process versions {
tag "extracting versions"
label "process_single"
publishDir "${params.outdir}/summary", mode: 'copy'
// no publishDir
container 'staphb/multiqc:1.19'
time '10m'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
Expand Down
2 changes: 1 addition & 1 deletion modules/local/mykrobe.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ process mykrobe {
tag "${meta.id}"
label "process_medium"
stageInMode "copy"
publishDir path: params.outdir, mode: 'copy'
publishDir path: params.outdir, mode: 'copy', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
container 'staphb/mykrobe:0.13.0'
time '1h'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
Expand Down
4 changes: 2 additions & 2 deletions modules/local/panaroo.nf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
process panaroo {
tag "Core Genome Alignment"
label "process_high"
publishDir params.outdir, mode: 'copy'
publishDir params.outdir, mode: 'copy', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
container 'staphb/panaroo:1.3.4'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
time '10h'
Expand All @@ -11,7 +11,7 @@ process panaroo {

output:
path "panaroo/*" , emit: files
tuple path("panaroo/core_gene_alignment.aln"), path("panaroo/gene_presence_absence.Rtab"), emit: core_gene_alignment
tuple path("panaroo/core_gene_alignment.aln"), path("panaroo/gene_presence_absence.Rtab"), emit: core_gene_alignment, optional: true
path "logs/${task.process}/*.log" , emit: log_files
path "versions.yml" , emit: versions

Expand Down
2 changes: 1 addition & 1 deletion modules/local/pbptyper.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ process pbptyper {
tag "${meta.id}"
label "process_medium"
stageInMode "copy"
publishDir path: params.outdir, mode: 'copy'
publishDir path: params.outdir, mode: 'copy', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
container 'staphb/pbptyper:1.0.4'
time '1h'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
Expand Down
4 changes: 2 additions & 2 deletions modules/local/phytreeviz.nf
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
process phytreeviz {
tag "${analysis}"
label "process_medium"
publishDir params.outdir, mode: 'copy'
container 'staphb/phytreeviz:0.1.0'
publishDir params.outdir, mode: 'copy', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
container 'staphb/phytreeviz:0.2.0'
time '1h'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

Expand Down
2 changes: 1 addition & 1 deletion modules/local/plasmidfinder.nf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
process plasmidfinder {
tag "${meta.id}"
label "process_medium"
publishDir params.outdir, mode: 'copy'
publishDir params.outdir, mode: 'copy', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
container 'staphb/plasmidfinder:2.1.6'
time '10m'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
Expand Down
2 changes: 1 addition & 1 deletion modules/local/prokka.nf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
process prokka {
tag "${meta.id}"
label "process_high"
publishDir params.outdir, mode: 'copy'
publishDir params.outdir, mode: 'copy', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
container 'staphb/prokka:1.14.6'
time '2h'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
Expand Down
2 changes: 1 addition & 1 deletion modules/local/quast.nf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
process quast {
tag "${meta.id}"
label "process_medium"
publishDir params.outdir, mode: 'copy'
publishDir params.outdir, mode: 'copy', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
container 'staphb/quast:5.2.0'
time '10m'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
Expand Down

0 comments on commit 9d42197

Please sign in to comment.