Skip to content

Commit

Permalink
uncommented errorstrategy
Browse files Browse the repository at this point in the history
  • Loading branch information
erinyoung committed Feb 13, 2024
1 parent 9408d6d commit f45d9e6
Show file tree
Hide file tree
Showing 25 changed files with 37 additions and 40 deletions.
2 changes: 1 addition & 1 deletion modules/local/amrfinderplus.nf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ process amrfinderplus {
label "process_medium"
publishDir params.outdir, mode: 'copy'
container 'staphb/ncbi-amrfinderplus:3.11.26-2023-11-15.1'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
time '10m'

input:
Expand Down
2 changes: 1 addition & 1 deletion modules/local/bbduk.nf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ process bbduk {
label "process_medium"
publishDir params.outdir, mode: 'copy'
container 'staphb/bbtools:39.01'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
time '10m'

input:
Expand Down
2 changes: 1 addition & 1 deletion modules/local/drprg.nf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ process drprg {
publishDir path: params.outdir, mode: 'copy'
container 'staphb/drprg:0.1.1'
time '10m'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

input:
tuple val(meta), file(contigs), val(flag)
Expand Down
2 changes: 1 addition & 1 deletion modules/local/elgato.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ process elgato {
publishDir path: params.outdir, mode: 'copy'
container 'staphb/elgato:1.15.2'
time '10m'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

input:
tuple val(meta), file(contigs), val(flag)
Expand Down
2 changes: 1 addition & 1 deletion modules/local/emmtyper.nf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ process emmtyper {
publishDir path: params.outdir, mode: 'copy'
container 'staphb/emmtyper:0.2.0'
time '10m'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

when:
(task.ext.when == null || task.ext.when) && flag =~ 'found'
Expand Down
2 changes: 1 addition & 1 deletion modules/local/fastani.nf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ process fastani {
publishDir path: params.outdir, mode: 'copy', pattern: 'fastani/*'
container 'staphb/fastani:1.34'
time '10m'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

input:
tuple val(meta), file(contigs), file(genomes)
Expand Down
2 changes: 1 addition & 1 deletion modules/local/heatcluster.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ process heatcluster {
publishDir params.outdir, mode: 'copy'
container 'staphb/heatcluster:1.0.2c'
time '10m'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

input:
file(matrix)
Expand Down
2 changes: 1 addition & 1 deletion modules/local/iqtree2.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ process iqtree2 {
publishDir params.outdir, mode: 'copy'
container 'staphb/iqtree2:2.2.2.7'
time '24h'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

input:
file(msa)
Expand Down
2 changes: 1 addition & 1 deletion modules/local/kaptive.nf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ process kaptive {
publishDir path: params.outdir, mode: 'copy'
container 'staphb/kaptive:2.0.8'
time '30m'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

input:
tuple val(meta), file(contigs), val(flag)
Expand Down
2 changes: 1 addition & 1 deletion modules/local/kleborate.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ process kleborate {
publishDir params.outdir, mode: 'copy'
container 'staphb/kleborate:2.4.1'
time '10m'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

input:
tuple val(meta), file(contig), val(flag), file(script)
Expand Down
20 changes: 10 additions & 10 deletions modules/local/local.nf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ process core_genome_evaluation {
publishDir path: params.outdir, mode: 'copy', pattern: 'core_genome_evaluation/core_genome_evaluation.csv'
container 'quay.io/biocontainers/pandas:1.5.2'
time '10m'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

input:
tuple file(fasta), file(summary), file(script)
Expand All @@ -32,10 +32,10 @@ process core_genome_evaluation {
process flag {
tag "${meta.id}"
label "process_single"
//publishDir params.outdir, mode: 'copy'
//no publishDir params.outdir, mode: 'copy'
container 'quay.io/biocontainers/pandas:1.5.2'
time '10m'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

input:
tuple val(meta), file(files)
Expand Down Expand Up @@ -139,7 +139,7 @@ process json_convert {
// no publishDir
container 'quay.io/biocontainers/pandas:1.5.2'
time '10m'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

input:
tuple val(meta), val(analysis), file(json), file(script)
Expand All @@ -163,7 +163,7 @@ process mash_err {
label "process_single"
container 'quay.io/biocontainers/pandas:1.5.2'
time '10m'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

input:
tuple val(meta), file(error_file)
Expand Down Expand Up @@ -192,7 +192,7 @@ process mqc_prep {
label "process_single"
container 'quay.io/biocontainers/pandas:1.5.2'
time '10m'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

input:
file(input)
Expand All @@ -216,7 +216,7 @@ process names {
label "process_single"
container 'quay.io/biocontainers/pandas:1.5.2'
time '10m'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

input:
tuple val(meta), file(input)
Expand Down Expand Up @@ -244,7 +244,7 @@ process references {
label "process_single"
container 'quay.io/uphl/grandeur_ref:20240124'
time '10m'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

output:
path "ref/*", emit: fastas
Expand All @@ -266,7 +266,7 @@ process species {
publishDir params.outdir, mode: 'copy'
container 'quay.io/biocontainers/pandas:1.5.2'
time '10m'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

input:
file(results)
Expand Down Expand Up @@ -306,7 +306,7 @@ process summary {
container 'quay.io/biocontainers/pandas:1.5.2'
label "process_single"
time '10m'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

input:
file(input)
Expand Down
2 changes: 1 addition & 1 deletion modules/local/mashtree.nf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ process mashtree {
container 'staphb/mashtree:1.4.6'
stageInMode 'copy'
time '4h'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

input:
file(assemblies)
Expand Down
4 changes: 2 additions & 2 deletions modules/local/multiqc.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ process multiqc {
publishDir params.outdir, mode: 'copy'
container 'staphb/multiqc:1.19'
time '10m'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

input:
file(input)
Expand Down Expand Up @@ -44,7 +44,7 @@ process versions {
publishDir "${params.outdir}/summary", mode: 'copy'
container 'staphb/multiqc:1.19'
time '10m'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

input:
file(input)
Expand Down
4 changes: 2 additions & 2 deletions modules/local/mykrobe.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ process mykrobe {
stageInMode "copy"
publishDir path: params.outdir, mode: 'copy'
container 'staphb/mykrobe:0.13.0'
time '1h'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
time '1h'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

input:
tuple val(meta), file(contigs), val(flag)
Expand Down
2 changes: 1 addition & 1 deletion modules/local/panaroo.nf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ process panaroo {
label "process_high"
publishDir params.outdir, mode: 'copy'
container 'staphb/panaroo:1.3.4'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
time '10h'

input:
Expand Down
2 changes: 1 addition & 1 deletion modules/local/pbptyper.nf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ process pbptyper {
publishDir path: params.outdir, mode: 'copy'
container 'staphb/pbptyper:1.0.4'
time '1h'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

input:
tuple val(meta), file(contigs), val(flag)
Expand Down
2 changes: 1 addition & 1 deletion modules/local/phytreeviz.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ process phytreeviz {
publishDir params.outdir, mode: 'copy'
container 'staphb/phytreeviz:0.1.0'
time '1h'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

input:
tuple val(analysis), file(newick)
Expand Down
2 changes: 1 addition & 1 deletion modules/local/plasmidfinder.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ process plasmidfinder {
publishDir params.outdir, mode: 'copy'
container 'staphb/plasmidfinder:2.1.6'
time '10m'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

input:
tuple val(meta), file(file), file(script)
Expand Down
2 changes: 1 addition & 1 deletion modules/local/prokka.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ process prokka {
publishDir params.outdir, mode: 'copy'
container 'staphb/prokka:1.14.6'
time '2h'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

input:
tuple val(meta), file(contigs), val(organism)
Expand Down
2 changes: 1 addition & 1 deletion modules/local/quast.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ process quast {
publishDir params.outdir, mode: 'copy'
container 'staphb/quast:5.2.0'
time '10m'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

input:
tuple val(meta), file(contigs)
Expand Down
2 changes: 1 addition & 1 deletion modules/local/roary.nf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ process roary {
label "process_high"
publishDir params.outdir, mode: 'copy'
container 'staphb/roary:3.13.0'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
time '10h'

input:
Expand Down
2 changes: 1 addition & 1 deletion modules/local/seqsero2.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ process seqsero2 {
publishDir params.outdir, mode: 'copy'
container 'staphb/seqsero2:1.2.1'
time '10m'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

input:
tuple val(meta), file(file), val(flag)
Expand Down
2 changes: 1 addition & 1 deletion modules/local/serotypefinder.nf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ process serotypefinder {
container 'staphb/serotypefinder:2.0.1'
maxForks 10
time '10m'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

input:
tuple val(meta), file(file), val(flag), file(script)
Expand Down
2 changes: 1 addition & 1 deletion modules/local/shigatyper.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ process shigatyper {
publishDir params.outdir, mode: 'copy'
container 'staphb/shigatyper:2.0.5'
stageInMode 'copy'
//errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
time '10m'

input:
Expand Down
7 changes: 2 additions & 5 deletions modules/local/snp-dists.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@ process snp_dists {
publishDir params.outdir, mode: 'copy'
container 'staphb/snp-dists:0.8.2'
maxForks 10
//#UPHLICA errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}
//#UPHLICA pod annotation: 'scheduler.illumina.com/presetSize', value: 'standard-medium'
//#UPHLICA memory 1.GB
//#UPHLICA cpus 3
//#UPHLICA time '24h'
time '2h'
errorStrategy { task.attempt < 2 ? 'retry' : 'ignore'}

input:
file(contigs)
Expand Down

0 comments on commit f45d9e6

Please sign in to comment.