Skip to content

Commit

Permalink
Merge pull request #77 from CDCgov/dev
Browse files Browse the repository at this point in the history
Release 1.4
  • Loading branch information
mciprianoCDC authored Jun 27, 2022
2 parents f8505d4 + b4bd506 commit cc0fc6c
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 15 deletions.
10 changes: 5 additions & 5 deletions conf/base.config
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ process {
time = { check_max( 4.h * task.attempt, 'time' ) }

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

// Process-specific resource requirements
Expand All @@ -30,13 +30,13 @@ process {
time = { check_max( 72.h * task.attempt, 'time' ) }
}
withLabel:process_medium {
cpus = { check_max( 4 * task.attempt, 'cpus' ) }
memory = { check_max( 6.GB * task.attempt, 'memory' ) }
cpus = { check_max( 6 * task.attempt, 'cpus' ) }
memory = { check_max( 16.GB * task.attempt, 'memory' ) }
time = { check_max( 72.h * task.attempt, 'time' ) }
}
withLabel:process_high {
cpus = { check_max( 4 * task.attempt, 'cpus' ) }
memory = { check_max( 12.GB * task.attempt, 'memory' ) }
cpus = { check_max( 12 * task.attempt, 'cpus' ) }
memory = { check_max( 32.GB * task.attempt, 'memory' ) }
time = { check_max( 72.h * task.attempt, 'time' ) }
}
withLabel:process_long {
Expand Down
4 changes: 2 additions & 2 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ process {
withName: 'SEQKIT_REPLACE' {
ext.args = { "-s -p '\\*' -r '-'" }
ext.suffix = { "fasta" }
ext.errorStrategy = { "ignore" }
ext.errorStrategy = { "retry" }
ext.prefix = { "vcf-to-fasta" }
ext.when = { }
publishDir = [
Expand All @@ -476,7 +476,7 @@ process {
}
withName: 'SNPDISTS' {
ext.args = { "" }
ext.errorStrategy = { "ignore" }
ext.errorStrategy = { "retry" }
ext.when = { }
publishDir = [
enabled: true,
Expand Down
17 changes: 11 additions & 6 deletions modules/local/downsample_rate.nf
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
process DOWNSAMPLE_RATE {
tag "$meta.id"
label 'process_low'


conda (params.enable_conda ? "conda-forge::python=3.8.3" : null)
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/python:3.8.3' :
'quay.io/biocontainers/python:3.8.3' }"

input:
tuple val(meta), path(reads)
path(reference_fasta)
val(coverage)
val(rate)
tuple val(meta), path(reads)
path(reference_fasta)
val(coverage)
val(rate)

output:
tuple val(meta), env(SAMPLE_RATE), env(SAMPLED_NUM_READS), emit: downsampled_rate
tuple val(meta), env(SAMPLE_RATE), env(SAMPLED_NUM_READS), emit: downsampled_rate
env(SAMPLED_NUM_READS) , emit: number_to_sample

script:
Expand Down
5 changes: 5 additions & 0 deletions modules/local/lane_merge.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ process LANE_MERGE {

tag "$meta.id"

conda (params.enable_conda ? "conda-forge::python=3.8.3" : null)
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/python:3.8.3' :
'quay.io/biocontainers/python:3.8.3' }"

input:
tuple val(meta), path(reads)

Expand Down
7 changes: 6 additions & 1 deletion modules/local/qc_reportsheet.nf
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
process QC_REPORTSHEET {
label 'process_low'

conda (params.enable_conda ? "conda-forge::python=3.8.3" : null)
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/python:3.8.3' :
'quay.io/biocontainers/python:3.8.3' }"

input:
path(qc_lines)

Expand All @@ -13,4 +18,4 @@ process QC_REPORTSHEET {
sort ${qc_lines} > sorted.txt
cat sorted.txt >> qc_report.txt
"""
}
}
5 changes: 5 additions & 0 deletions modules/local/vcfqc.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ process VCF_QC {
tag "vcf-qc"
label 'process_low'

conda (params.enable_conda ? "conda-forge::python=3.8.3" : null)
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/python:3.8.3' :
'quay.io/biocontainers/python:3.8.3' }"

input:
path(vcffasta)

Expand Down
2 changes: 1 addition & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ params {
gatkgenotypes_filter = '--min_GQ "50" --keep_GQ_0_refs --min_percent_alt_in_AD "0.8" --min_total_DP "10" --keep_all_ref'
max_amb_samples = 10000000
max_perc_amb_samples = 10
min_depth = 50
min_depth = 10
publish_dir_mode = 'copy'
rapidnj = true
fasttree = true
Expand Down
5 changes: 5 additions & 0 deletions subworkflows/local/bwa-reference.nf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ include { SAMTOOLS_FAIDX } from '../../modules/nf-core/modules/

process INPUT_PROC {

conda (params.enable_conda ? "conda-forge::sed=4.7" : null)
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/python:3.8.3' :
'quay.io/biocontainers/python:3.8.3' }"

input:
path(fasta)

Expand Down

0 comments on commit cc0fc6c

Please sign in to comment.