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 f0c4cd3 commit 08574e4
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion modules/local/bbduk.nf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
process bbduk {
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/bbtools:39.01'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
time '10m'
Expand Down
2 changes: 1 addition & 1 deletion modules/local/blast.nf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
process blastn {
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/blast:2.15.0'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
time '2h'
Expand Down
6 changes: 3 additions & 3 deletions modules/local/blobtools.nf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
process blobtools_create {
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 'chrishah/blobtools:v1.1.1'
time '45m'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
Expand Down Expand Up @@ -41,7 +41,7 @@ process blobtools_create {

process blobtools_view {
tag "${meta.id}"
publishDir params.outdir, mode: 'copy'
publishDir params.outdir, mode: 'copy', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
container 'chrishah/blobtools:v1.1.1'
time '10m'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
Expand Down Expand Up @@ -78,7 +78,7 @@ process blobtools_view {

process blobtools_plot {
tag "${meta.id}"
publishDir params.outdir, mode: 'copy'
publishDir params.outdir, mode: 'copy', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
container 'chrishah/blobtools:v1.1.1'
time '10m'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
Expand Down
2 changes: 1 addition & 1 deletion modules/local/datasets.nf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
process datasets_summary {
tag "${taxon}"
label "process_single"
publishDir params.outdir, mode: 'copy'
publishDir params.outdir, mode: 'copy', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
container 'staphb/ncbi-datasets:16.2.0'
time '1h'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore' }
Expand Down
2 changes: 1 addition & 1 deletion modules/local/drprg.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ process drprg {
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/drprg:0.1.1'
time '10m'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
Expand Down
2 changes: 1 addition & 1 deletion modules/local/elgato.nf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
process elgato {
tag "${meta.id}"
label "process_medium"
publishDir path: params.outdir, mode: 'copy'
publishDir path: params.outdir, mode: 'copy', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
container 'staphb/elgato:1.15.2'
time '10m'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
Expand Down
2 changes: 1 addition & 1 deletion modules/local/emmtyper.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ process emmtyper {
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/emmtyper:0.2.0'
time '10m'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
Expand Down
2 changes: 1 addition & 1 deletion modules/local/kaptive.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ process kaptive {
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/kaptive:2.0.8'
time '30m'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
Expand Down
2 changes: 1 addition & 1 deletion modules/local/kleborate.nf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
process kleborate {
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/kleborate:2.4.1'
time '10m'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
Expand Down
2 changes: 1 addition & 1 deletion modules/local/kraken2.nf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
process kraken2 {
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/kraken2:2.1.3'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
time '1h'
Expand Down
2 changes: 1 addition & 1 deletion modules/local/seqsero2.nf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
process seqsero2 {
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/seqsero2:1.2.1'
time '10m'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
Expand Down
2 changes: 1 addition & 1 deletion modules/local/serotypefinder.nf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
process serotypefinder {
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/serotypefinder:2.0.1'
maxForks 10
time '10m'
Expand Down
2 changes: 1 addition & 1 deletion modules/local/shigatyper.nf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
process shigatyper {
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/shigatyper:2.0.5'
stageInMode 'copy'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
Expand Down
2 changes: 1 addition & 1 deletion modules/local/snp-dists.nf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
process snp_dists {
tag "SNP matrix"
label "process_medium"
publishDir params.outdir, mode: 'copy'
publishDir params.outdir, mode: 'copy', saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
container 'staphb/snp-dists:0.8.2'
maxForks 10
time '2h'
Expand Down
2 changes: 1 addition & 1 deletion modules/local/spades.nf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
process spades {
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/spades:3.15.5'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
time '5h'
Expand Down

0 comments on commit 08574e4

Please sign in to comment.