Skip to content

Commit

Permalink
update configs
Browse files Browse the repository at this point in the history
- add container to processes
- update error strategy
  • Loading branch information
jodennehy committed Sep 17, 2024
1 parent 826eba2 commit 756159f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 3 additions & 3 deletions conf/base.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ process {
memory = { check_max( 2.GB * task.attempt, 'memory' ) }
time = { check_max( 1.h * task.attempt, 'time' ) }

errorStrategy = { task.exitStatus in [143,137,104,134,139] ? 'retry' : 'finish' }
maxRetries = 1
errorStrategy = { task.attempt <= 3 ? 'retry' : 'finish' }
maxRetries = 3
maxErrors = '-1'

// Process-specific resource requirements
Expand All @@ -19,7 +19,7 @@ process {

withName: GLIMPSE2_PHASE {
cpus = { check_max( 8 * task.attempt, 'cpus' ) }
memory = { check_max( 20.GB * task.attempt, 'memory' ) }
memory = { check_max( 20.GB * (task.attempt ** 1.5), 'memory' ) }
time = { check_max( 12.h * task.attempt, 'time' ) }
}

Expand Down
4 changes: 4 additions & 0 deletions modules/local/bcftools_impute_info/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ process BCFTOOLS_IMPUTE_INFO {

label 'process_medium'

container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/bcftools:1.18--h8b25389_0':
'biocontainers/bcftools:1.18--h8b25389_0' }"

publishDir "${params.publishdir}", mode: 'copy', pattern: "glimpse_vcf_annotated.vcf.gz"
publishDir "${params.publishdir}", mode: 'copy', pattern: "glimpse_vcf_annotated.vcf.gz.csi"

Expand Down
4 changes: 4 additions & 0 deletions modules/local/split_vcfs/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ process SPLIT_VCFS {

label 'process_medium'

container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/bcftools:1.18--h8b25389_0':
'biocontainers/bcftools:1.18--h8b25389_0' }"

input:
tuple val(meta), path(vcf), path(sample_list)

Expand Down

0 comments on commit 756159f

Please sign in to comment.