Skip to content

Commit 028b399

Browse files
committed
publishdir removed for some modules
1 parent 283405c commit 028b399

2 files changed

Lines changed: 19 additions & 4 deletions

File tree

conf/modules.config

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,9 @@ process {
528528

529529
withName: SAMTOOLS_INDEX {
530530
conda = null // temporary for mOTUs 4
531+
publishDir = [
532+
enabled: false
533+
]
531534
}
532535

533536
withName: MERGE_RUNS {
@@ -553,7 +556,8 @@ process {
553556
tag = { "${meta.db_name}|${meta.id}" }
554557
ext.prefix = { params.perform_runmerging ? "${meta.id}_${meta.db_name}" : "${meta.id}_${meta.run_accession}_${meta.db_name}" }
555558
publishDir = [
556-
path: { "${params.outdir}/motus/${meta.db_name}/" },
559+
path: { "${params.outdir}/motus/profile/${meta.db_name}/" },
560+
pattern: '*.{out,log,mgc}',
557561
mode: params.publish_dir_mode,
558562
]
559563
}
@@ -562,24 +566,35 @@ process {
562566
conda = null // temporary for mOTUs 4
563567
ext.prefix = { "${meta.id}_read${meta.paired_idx}_renamed_reads.${meta.is_fasta ? "fasta" : "fastq" }" }
564568
ext.args = "-c fastx '{sub(/\\/1\$|\\/2\$/, \"\", \$name); print \"@\"\$name\"\\n\"\$seq\"\\n+\\n\"\$qual}'"
569+
publishDir = [
570+
enabled: false
571+
]
565572
}
566573

567574

568575
withName: MOTUS_MERGE {
569576
ext.prefix = { "motus_${meta.id}_combined_reports" }
570577
memory = { 10.GB * task.attempt }
571578
publishDir = [
572-
path: { "${params.outdir}/motus/" },
579+
path: { "${params.outdir}/motus/merge/${meta.db_name}/" },
580+
pattern: '*.txt',
573581
mode: params.publish_dir_mode,
574582
]
575583
}
576584

577585
withName: CAYMAN_PROFILE {
578586
conda = null // temporary for mOTUs 4
587+
errorStrategy = {
588+
// cayman returns error 1 for out of memory
589+
sleep(Math.pow(2, task.attempt) * 200 as long)
590+
return 'retry'
591+
}
592+
maxRetries = 10
579593
tag = { "${meta.db_name}|${meta.id}" }
580594
ext.prefix = { params.perform_runmerging ? "${meta.id}_${meta.db_name}" : "${meta.id}_${meta.run_accession}_${meta.db_name}" }
581595
publishDir = [
582-
path: { "${params.outdir}/cayman/${meta.db_name}/" },
596+
path: { "${params.outdir}/cayman/profile/${meta.db_name}/" },
597+
pattern: '*.{txt.gz,log}',
583598
mode: params.publish_dir_mode,
584599
]
585600
}

conf/zellerlab.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ profiles {
1919
process {
2020
executor = 'slurm'
2121
errorStrategy = {
22-
if (task.exitStatus in [132, 135] ) {
22+
if (task.exitStatus in [132, 135, 255] ) {
2323
sleep(Math.pow(2, task.attempt) * 200 as long)
2424
return 'retry'
2525
}

0 commit comments

Comments
 (0)