2021-02-14 16:50:20 +00:00
|
|
|
// Profile config names for nf-core/configs
|
|
|
|
|
|
|
|
params {
|
|
|
|
// Specific nf-core/configs params
|
|
|
|
config_profile_contact = 'James Fellows Yates (@jfy133)'
|
2022-02-06 18:37:53 +00:00
|
|
|
config_profile_description = 'nf-core/eager EVA profile provided by nf-core/configs'
|
2021-02-14 16:50:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Specific nf-core/eager process configuration
|
|
|
|
process {
|
|
|
|
|
2021-09-09 11:10:05 +00:00
|
|
|
beforeScript = 'export _JAVA_OPTIONS="-XX:ParallelGCThreads=1"'
|
2021-04-06 15:48:16 +00:00
|
|
|
|
2021-02-14 16:50:20 +00:00
|
|
|
maxRetries = 2
|
|
|
|
|
|
|
|
// Solution for clusterOptions comes from here: https://github.com/nextflow-io/nextflow/issues/332 + personal toMega conversion
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -j y -o output.log -l h_vmem=${task.memory.toGiga()}G" }
|
2021-02-14 16:50:20 +00:00
|
|
|
|
|
|
|
withLabel:'sc_tiny'{
|
|
|
|
cpus = { check_max( 1, 'cpus' ) }
|
|
|
|
memory = { check_max( 1.GB * task.attempt, 'memory' ) }
|
2022-02-10 10:34:57 +00:00
|
|
|
time = '365.d'
|
2021-02-14 16:50:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withLabel:'sc_small'{
|
|
|
|
cpus = { check_max( 1, 'cpus' ) }
|
|
|
|
memory = { check_max( 4.GB * task.attempt, 'memory' ) }
|
2022-02-10 10:34:57 +00:00
|
|
|
time = '365.d'
|
2021-02-14 16:50:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withLabel:'sc_medium'{
|
|
|
|
cpus = { check_max( 1, 'cpus' ) }
|
|
|
|
memory = { check_max( 8.GB * task.attempt, 'memory' ) }
|
2022-02-10 10:34:57 +00:00
|
|
|
time = '365.d'
|
2021-02-14 16:50:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withLabel:'mc_small'{
|
|
|
|
cpus = { check_max( 2, 'cpus' ) }
|
|
|
|
memory = { check_max( 4.GB * task.attempt, 'memory' ) }
|
2022-02-10 10:34:57 +00:00
|
|
|
time = '365.d'
|
2021-02-14 16:50:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withLabel:'mc_medium' {
|
|
|
|
cpus = { check_max( 4, 'cpus' ) }
|
|
|
|
memory = { check_max( 8.GB * task.attempt, 'memory' ) }
|
2022-02-10 10:34:57 +00:00
|
|
|
time = '365.d'
|
2021-02-14 16:50:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withLabel:'mc_large'{
|
2022-02-10 10:19:16 +00:00
|
|
|
cpus = { check_max( 8, 'cpus' ) }
|
|
|
|
memory = { check_max( 16.GB * task.attempt, 'memory' ) }
|
2022-02-10 10:34:57 +00:00
|
|
|
time = '365.d'
|
2021-02-14 16:50:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withLabel:'mc_huge'{
|
|
|
|
cpus = { check_max( 32, 'cpus' ) }
|
|
|
|
memory = { check_max( 256.GB * task.attempt, 'memory' ) }
|
2022-02-10 10:34:57 +00:00
|
|
|
time = '365.d'
|
2021-02-14 16:50:20 +00:00
|
|
|
}
|
2022-03-31 09:06:53 +00:00
|
|
|
|
2021-02-14 16:50:20 +00:00
|
|
|
// Fixes for SGE and Java incompatibility due to Java using more memory than you tell it to use
|
|
|
|
|
|
|
|
withName: makeSeqDict {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 2)}G" }
|
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-02-14 16:50:20 +00:00
|
|
|
}
|
2022-03-31 09:06:53 +00:00
|
|
|
|
2021-02-14 16:50:20 +00:00
|
|
|
withName: fastqc {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 2)}G" }
|
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-02-14 16:50:20 +00:00
|
|
|
}
|
2022-04-22 08:47:04 +00:00
|
|
|
|
|
|
|
withName: fastqc_after_clipping {
|
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 2)}G" }
|
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
|
|
|
}
|
2021-02-14 16:50:20 +00:00
|
|
|
|
|
|
|
withName: adapter_removal {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 2)}G" }
|
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-02-14 16:50:20 +00:00
|
|
|
}
|
2022-03-31 11:12:50 +00:00
|
|
|
|
|
|
|
withName: bwa {
|
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga())}G,h=!(bionode01|bionode02|bionode03|bionode04|bionode05|bionode06)" }
|
|
|
|
}
|
|
|
|
|
|
|
|
withName: bwamem {
|
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga())}G,h=!(bionode01|bionode02|bionode03|bionode04|bionode05|bionode06)" }
|
|
|
|
}
|
|
|
|
|
|
|
|
withName: circularmapper {
|
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga())}G,h=!(bionode01|bionode02|bionode03|bionode04|bionode05|bionode06)" }
|
|
|
|
}
|
|
|
|
|
|
|
|
withName: bowtie2 {
|
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga())}G,h=!(bionode01|bionode02|bionode03|bionode04|bionode05|bionode06)" }
|
|
|
|
}
|
2021-02-14 16:50:20 +00:00
|
|
|
|
2021-12-03 07:36:31 +00:00
|
|
|
withName: samtools_flagstat {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 2)}G" }
|
2021-12-03 07:36:31 +00:00
|
|
|
}
|
2022-03-31 09:06:53 +00:00
|
|
|
|
2021-12-07 08:27:28 +00:00
|
|
|
withName: samtools_flagstat_after_filter {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 2)}G" }
|
2021-12-07 08:27:28 +00:00
|
|
|
}
|
2021-12-03 07:36:31 +00:00
|
|
|
|
2021-02-14 16:50:20 +00:00
|
|
|
withName: dedup {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 2)}G" }
|
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-02-14 16:50:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: markduplicates {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 2)}G" }
|
2022-02-02 07:00:13 +00:00
|
|
|
memory = { check_max( 20.GB * task.attempt, 'memory' ) }
|
2022-03-31 09:06:53 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-02-14 16:50:20 +00:00
|
|
|
}
|
2022-03-31 09:06:53 +00:00
|
|
|
|
2021-05-05 09:39:33 +00:00
|
|
|
withName: library_merge {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 2)}G" }
|
2021-05-05 09:39:33 +00:00
|
|
|
}
|
2021-02-14 16:50:20 +00:00
|
|
|
|
2021-09-05 10:07:53 +00:00
|
|
|
withName: seqtype_merge {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 2)}G" }
|
2021-09-05 10:07:53 +00:00
|
|
|
}
|
2022-03-31 09:06:53 +00:00
|
|
|
|
2021-09-05 10:07:53 +00:00
|
|
|
withName: additional_library_merge {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 2)}G" }
|
2021-09-08 13:16:40 +00:00
|
|
|
memory = { check_max( 4.GB * task.attempt, 'memory' ) }
|
2021-09-05 10:07:53 +00:00
|
|
|
}
|
2022-03-31 09:06:53 +00:00
|
|
|
|
2022-01-14 06:03:05 +00:00
|
|
|
withName: metagenomic_complexity_filter {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 2)}G" }
|
2022-01-14 06:03:05 +00:00
|
|
|
}
|
2021-09-05 10:07:53 +00:00
|
|
|
|
2021-02-14 16:50:20 +00:00
|
|
|
withName: malt {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=1000G" }
|
2021-08-30 11:29:44 +00:00
|
|
|
cpus = { check_max( 32, 'cpus' ) }
|
|
|
|
memory = { check_max( 955.GB * task.attempt, 'memory' ) }
|
2021-02-14 16:50:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: maltextract {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 2)}G" }
|
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-02-14 16:50:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: multivcfanalyzer {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 2)}G" }
|
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-02-14 16:50:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: mtnucratio {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 2)}G" }
|
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-02-14 16:50:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: vcf2genome {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 2)}G" }
|
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-02-14 16:50:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: qualimap {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 2)}G" }
|
2022-02-08 10:15:17 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : task.exitStatus in [255] ? 'ignore' : 'finish' }
|
2021-02-14 16:50:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: damageprofiler {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 2)}G" }
|
2022-02-06 08:07:53 +00:00
|
|
|
memory = { check_max( 8.GB * task.attempt, 'memory' ) }
|
2022-03-31 09:06:53 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-02-14 16:50:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: circularmapper {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 2)}G" }
|
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-02-14 16:50:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: circulargenerator {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 2)}G" }
|
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-02-14 16:50:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: preseq {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 2)}G" }
|
2021-04-06 15:48:16 +00:00
|
|
|
errorStrategy = { task.exitStatus in [143,137,104,134,139] ? 'retry' : 'ignore' }
|
2021-02-14 16:50:20 +00:00
|
|
|
}
|
2022-03-31 09:06:53 +00:00
|
|
|
|
2021-08-20 08:11:11 +00:00
|
|
|
withName: genotyping_ug {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 2)}G" }
|
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-08-20 08:11:11 +00:00
|
|
|
}
|
2022-05-02 11:59:13 +00:00
|
|
|
|
|
|
|
withName:get_software_versions {
|
|
|
|
cache = false
|
2022-05-03 16:30:42 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h=!(bionode06)"
|
2022-05-03 14:36:05 +00:00
|
|
|
beforeScript = 'export _JAVA_OPTIONS="-XX:ParallelGCThreads=1 -Xmx512m"; export OPENBLAS_NUM_THREADS=1; export OMP_NUM_THREADS=1'
|
2022-05-03 14:25:48 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toMega())}M" }
|
2022-05-02 11:59:13 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
|
|
|
}
|
2022-05-03 14:12:20 +00:00
|
|
|
|
|
|
|
withName:kraken_merge {
|
2022-05-03 14:42:21 +00:00
|
|
|
beforeScript = 'export OPENBLAS_NUM_THREADS=1; export OMP_NUM_THREADS=1'
|
|
|
|
}
|
2021-02-14 16:50:20 +00:00
|
|
|
|
2022-05-03 14:42:21 +00:00
|
|
|
withName:multiqc {
|
|
|
|
beforeScript = 'export OPENBLAS_NUM_THREADS=1; export OMP_NUM_THREADS=1;'
|
|
|
|
}
|
2021-02-14 16:50:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
profiles {
|
2022-03-31 09:06:53 +00:00
|
|
|
|
2021-08-04 08:14:56 +00:00
|
|
|
medium_data {
|
2022-03-31 09:06:53 +00:00
|
|
|
|
2021-02-14 16:50:20 +00:00
|
|
|
params {
|
|
|
|
// Specific nf-core/configs params
|
|
|
|
config_profile_contact = 'James Fellows Yates (@jfy133)'
|
2021-08-04 08:14:56 +00:00
|
|
|
config_profile_description = 'nf-core/eager medium-data EVA profile provided by nf-core/configs'
|
2021-02-14 16:50:20 +00:00
|
|
|
}
|
2022-03-31 09:06:53 +00:00
|
|
|
|
2021-02-14 16:50:20 +00:00
|
|
|
executor {
|
2021-08-04 08:14:56 +00:00
|
|
|
queueSize = 8
|
2021-02-14 16:50:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
process {
|
|
|
|
|
2021-09-09 11:54:01 +00:00
|
|
|
beforeScript = 'export _JAVA_OPTIONS="-XX:ParallelGCThreads=1"'
|
2021-08-04 08:14:56 +00:00
|
|
|
|
|
|
|
maxRetries = 2
|
|
|
|
|
|
|
|
// Solution for clusterOptions comes from here: https://github.com/nextflow-io/nextflow/issues/332 + personal toMega conversion
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -j y -o output.log -l h_vmem=${task.memory.toGiga()}G" }
|
2021-08-04 08:14:56 +00:00
|
|
|
|
|
|
|
withLabel:'sc_tiny'{
|
|
|
|
cpus = { check_max( 1, 'cpus' ) }
|
|
|
|
memory = { check_max( 1.5.GB * task.attempt, 'memory' ) }
|
|
|
|
}
|
|
|
|
|
|
|
|
withLabel:'sc_small'{
|
|
|
|
cpus = { check_max( 1, 'cpus' ) }
|
|
|
|
memory = { check_max( 6.GB * task.attempt, 'memory' ) }
|
|
|
|
}
|
|
|
|
|
|
|
|
withLabel:'sc_medium'{
|
|
|
|
cpus = { check_max( 1, 'cpus' ) }
|
|
|
|
memory = { check_max( 12.GB * task.attempt, 'memory' ) }
|
|
|
|
}
|
|
|
|
|
|
|
|
withLabel:'mc_small'{
|
|
|
|
cpus = { check_max( 2, 'cpus' ) }
|
|
|
|
memory = { check_max( 6.GB * task.attempt, 'memory' ) }
|
|
|
|
}
|
|
|
|
|
|
|
|
withLabel:'mc_medium' {
|
|
|
|
cpus = { check_max( 4, 'cpus' ) }
|
|
|
|
memory = { check_max( 12.GB * task.attempt, 'memory' ) }
|
|
|
|
}
|
|
|
|
|
|
|
|
withLabel:'mc_large'{
|
|
|
|
cpus = { check_max( 8, 'cpus' ) }
|
|
|
|
memory = { check_max( 24.GB * task.attempt, 'memory' ) }
|
|
|
|
}
|
|
|
|
|
|
|
|
withLabel:'mc_huge'{
|
|
|
|
cpus = { check_max( 32, 'cpus' ) }
|
|
|
|
memory = { check_max( 256.GB * task.attempt, 'memory' ) }
|
|
|
|
}
|
|
|
|
|
2021-12-03 07:36:31 +00:00
|
|
|
// Fixes for SGE and Java incompatibility due to (and also some samtools?!) using more memory than you tell it to use
|
2021-08-04 08:14:56 +00:00
|
|
|
|
|
|
|
withName: makeSeqDict {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 3)}G" }
|
2022-02-06 08:07:53 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-08-04 08:14:56 +00:00
|
|
|
}
|
2022-03-31 09:06:53 +00:00
|
|
|
|
2021-08-04 08:14:56 +00:00
|
|
|
withName: fastqc {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 3)}G" }
|
2022-02-06 08:07:53 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-08-04 08:14:56 +00:00
|
|
|
}
|
2022-04-22 08:47:04 +00:00
|
|
|
|
|
|
|
withName: fastqc_after_clipping {
|
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 3)}G" }
|
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
|
|
|
}
|
2021-08-04 08:14:56 +00:00
|
|
|
|
|
|
|
withName: adapter_removal {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 3)}G" }
|
2022-02-06 08:07:53 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-12-03 07:36:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: samtools_flagstat {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 3)}G" }
|
2021-08-04 08:14:56 +00:00
|
|
|
}
|
2022-03-31 09:06:53 +00:00
|
|
|
|
2021-12-07 08:27:28 +00:00
|
|
|
withName: samtools_flagstat_after_filter {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 3)}G" }
|
2021-12-07 08:27:28 +00:00
|
|
|
}
|
2021-08-04 08:14:56 +00:00
|
|
|
|
|
|
|
withName: dedup {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 3)}G" }
|
2022-02-06 08:07:53 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-08-04 08:14:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: markduplicates {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 3)}G" }
|
2022-02-02 07:00:13 +00:00
|
|
|
memory = { check_max( 32.GB * task.attempt, 'memory' ) }
|
2022-02-06 08:07:53 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-08-04 08:14:56 +00:00
|
|
|
}
|
2022-03-31 09:06:53 +00:00
|
|
|
|
2021-08-04 08:14:56 +00:00
|
|
|
withName: library_merge {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 3)}G" }
|
2021-09-05 10:07:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: seqtype_merge {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 3)}G" }
|
2021-09-05 10:07:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: additional_library_merge {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 3)}G" }
|
2021-09-08 13:16:40 +00:00
|
|
|
memory = { check_max( 4.GB * task.attempt, 'memory' ) }
|
2021-09-05 10:07:53 +00:00
|
|
|
}
|
2021-08-04 08:14:56 +00:00
|
|
|
|
2022-01-14 06:03:05 +00:00
|
|
|
withName: metagenomic_complexity_filter {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 3)}G" }
|
2022-01-14 06:03:05 +00:00
|
|
|
}
|
|
|
|
|
2021-08-04 08:14:56 +00:00
|
|
|
withName: malt {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=1000G" }
|
2021-08-30 11:29:44 +00:00
|
|
|
cpus = { check_max( 32, 'cpus' ) }
|
|
|
|
memory = { check_max( 955.GB * task.attempt, 'memory' ) }
|
2022-02-06 08:07:53 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-08-30 11:29:44 +00:00
|
|
|
}
|
2021-02-14 16:50:20 +00:00
|
|
|
|
|
|
|
withName:hostremoval_input_fastq {
|
|
|
|
memory = { check_max( 32.GB * task.attempt, 'memory' ) }
|
|
|
|
}
|
|
|
|
|
2021-08-04 08:14:56 +00:00
|
|
|
withName: maltextract {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 3)}G" }
|
2022-02-06 08:07:53 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-08-04 08:14:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: multivcfanalyzer {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 3)}G" }
|
2022-02-06 08:07:53 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-08-04 08:14:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: mtnucratio {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 3)}G" }
|
2022-02-06 08:07:53 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-08-04 08:14:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: vcf2genome {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 3)}G" }
|
2022-02-06 08:07:53 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-08-04 08:14:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: qualimap {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 3)}G" }
|
2022-02-08 10:15:17 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : task.exitStatus in [255] ? 'ignore' : 'finish' }
|
2021-08-04 08:14:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: damageprofiler {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 3)}G" }
|
2022-02-06 08:07:53 +00:00
|
|
|
memory = { check_max( 16.GB * task.attempt, 'memory' ) }
|
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-08-04 08:14:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: circularmapper {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 3)}G" }
|
2022-02-06 08:07:53 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-08-04 08:14:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: circulargenerator {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 3)}G" }
|
2022-02-06 08:07:53 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-08-04 08:14:56 +00:00
|
|
|
}
|
2022-03-31 09:06:53 +00:00
|
|
|
|
2021-08-20 08:11:11 +00:00
|
|
|
withName: genotyping_ug {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 3)}G" }
|
2022-02-06 08:07:53 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-08-20 08:11:11 +00:00
|
|
|
}
|
2021-08-04 08:14:56 +00:00
|
|
|
|
|
|
|
withName: preseq {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 3)}G" }
|
2021-08-04 08:14:56 +00:00
|
|
|
errorStrategy = { task.exitStatus in [143,137,104,134,139] ? 'retry' : 'ignore' }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
big_data {
|
2022-03-31 09:06:53 +00:00
|
|
|
|
2021-08-04 08:14:56 +00:00
|
|
|
params {
|
|
|
|
// Specific nf-core/configs params
|
|
|
|
config_profile_contact = 'James Fellows Yates (@jfy133)'
|
|
|
|
config_profile_description = 'nf-core/eager big-data EVA profile provided by nf-core/configs'
|
|
|
|
}
|
2022-03-31 09:06:53 +00:00
|
|
|
|
2021-08-04 08:14:56 +00:00
|
|
|
executor {
|
|
|
|
queueSize = 6
|
|
|
|
}
|
|
|
|
|
|
|
|
process {
|
|
|
|
|
2021-09-09 11:54:01 +00:00
|
|
|
beforeScript = 'export _JAVA_OPTIONS="-XX:ParallelGCThreads=1"'
|
2021-08-04 08:14:56 +00:00
|
|
|
|
|
|
|
maxRetries = 2
|
|
|
|
|
|
|
|
// Solution for clusterOptions comes from here: https://github.com/nextflow-io/nextflow/issues/332 + personal toMega conversion
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -j y -o output.log -l h_vmem=${task.memory.toGiga()}G" }
|
2021-08-04 08:14:56 +00:00
|
|
|
|
2021-02-14 16:50:20 +00:00
|
|
|
withLabel:'sc_tiny'{
|
|
|
|
cpus = { check_max( 1, 'cpus' ) }
|
|
|
|
memory = { check_max( 2.GB * task.attempt, 'memory' ) }
|
|
|
|
}
|
|
|
|
|
|
|
|
withLabel:'sc_small'{
|
|
|
|
cpus = { check_max( 1, 'cpus' ) }
|
|
|
|
memory = { check_max( 8.GB * task.attempt, 'memory' ) }
|
|
|
|
}
|
|
|
|
|
|
|
|
withLabel:'sc_medium'{
|
|
|
|
cpus = { check_max( 1, 'cpus' ) }
|
|
|
|
memory = { check_max( 16.GB * task.attempt, 'memory' ) }
|
|
|
|
}
|
|
|
|
|
|
|
|
withLabel:'mc_small'{
|
|
|
|
cpus = { check_max( 2, 'cpus' ) }
|
|
|
|
memory = { check_max( 8.GB * task.attempt, 'memory' ) }
|
|
|
|
}
|
|
|
|
|
|
|
|
withLabel:'mc_medium' {
|
|
|
|
cpus = { check_max( 4, 'cpus' ) }
|
|
|
|
memory = { check_max( 16.GB * task.attempt, 'memory' ) }
|
|
|
|
}
|
|
|
|
|
|
|
|
withLabel:'mc_large'{
|
|
|
|
cpus = { check_max( 8, 'cpus' ) }
|
|
|
|
memory = { check_max( 32.GB * task.attempt, 'memory' ) }
|
|
|
|
}
|
|
|
|
|
|
|
|
withLabel:'mc_huge'{
|
|
|
|
cpus = { check_max( 32, 'cpus' ) }
|
|
|
|
memory = { check_max( 512.GB * task.attempt, 'memory' ) }
|
|
|
|
}
|
2021-08-04 08:14:56 +00:00
|
|
|
|
|
|
|
// Fixes for SGE and Java incompatibility due to Java using more memory than you tell it to use
|
|
|
|
|
|
|
|
withName: makeSeqDict {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 6)}G" }
|
2022-02-06 08:07:53 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-08-04 08:14:56 +00:00
|
|
|
}
|
2022-03-31 09:06:53 +00:00
|
|
|
|
2021-08-04 08:14:56 +00:00
|
|
|
withName: fastqc {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 6)}G" }
|
2022-02-06 08:07:53 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-08-04 08:14:56 +00:00
|
|
|
}
|
2022-04-22 08:47:04 +00:00
|
|
|
|
|
|
|
withName: fastqc_after_clipping {
|
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 6)}G" }
|
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
|
|
|
}
|
2021-08-04 08:14:56 +00:00
|
|
|
|
|
|
|
withName: adapter_removal {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 6)}G" }
|
2022-02-06 08:07:53 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-12-03 07:36:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: samtools_flagstat {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 6)}G" }
|
2021-08-04 08:14:56 +00:00
|
|
|
}
|
2022-03-31 09:06:53 +00:00
|
|
|
|
2021-12-07 08:27:28 +00:00
|
|
|
withName: samtools_flagstat_after_filter {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 6)}G" }
|
2021-12-07 08:27:28 +00:00
|
|
|
}
|
2021-08-04 08:14:56 +00:00
|
|
|
|
|
|
|
withName: dedup {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 6)}G" }
|
2022-02-06 08:07:53 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-08-04 08:14:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: markduplicates {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 6)}G" }
|
2022-02-02 07:00:13 +00:00
|
|
|
memory = { check_max( 48.GB * task.attempt, 'memory' ) }
|
2022-02-06 08:07:53 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-08-04 08:14:56 +00:00
|
|
|
}
|
2022-03-31 09:06:53 +00:00
|
|
|
|
2021-08-04 08:14:56 +00:00
|
|
|
withName: library_merge {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 6)}G" }
|
2021-09-09 12:47:20 +00:00
|
|
|
memory = { check_max( 6.GB * task.attempt, 'memory' ) }
|
2021-09-05 10:07:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: seqtype_merge {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 6)}G" }
|
2021-09-05 10:07:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: additional_library_merge {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 6)}G" }
|
2021-09-09 12:47:20 +00:00
|
|
|
memory = { check_max( 6.GB * task.attempt, 'memory' ) }
|
2021-09-05 10:07:53 +00:00
|
|
|
}
|
2021-08-04 08:14:56 +00:00
|
|
|
|
|
|
|
withName:hostremoval_input_fastq {
|
|
|
|
memory = { check_max( 32.GB * task.attempt, 'memory' ) }
|
|
|
|
}
|
|
|
|
|
2022-01-14 06:03:05 +00:00
|
|
|
withName: metagenomic_complexity_filter {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 6)}G" }
|
2022-01-14 06:03:05 +00:00
|
|
|
}
|
|
|
|
|
2021-08-04 08:14:56 +00:00
|
|
|
withName: malt {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=1000G" }
|
2021-08-30 11:29:44 +00:00
|
|
|
cpus = { check_max( 32, 'cpus' ) }
|
|
|
|
memory = { check_max( 955.GB * task.attempt, 'memory' ) }
|
2022-02-06 08:07:53 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-08-30 11:29:44 +00:00
|
|
|
}
|
2021-08-04 08:14:56 +00:00
|
|
|
|
|
|
|
withName: maltextract {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 6)}G" }
|
2022-02-06 08:07:53 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-08-04 08:14:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: multivcfanalyzer {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 6)}G" }
|
2022-02-06 08:07:53 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-08-04 08:14:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: mtnucratio {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 6)}G" }
|
2022-02-06 08:07:53 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-08-04 08:14:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: vcf2genome {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 6)}G" }
|
2022-02-06 08:07:53 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-08-04 08:14:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: qualimap {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 6)}G" }
|
2022-02-08 10:15:17 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : task.exitStatus in [255] ? 'ignore' : 'finish' }
|
2021-08-04 08:14:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: damageprofiler {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 6)}G" }
|
|
|
|
memory = { check_max( 32.GB * task.attempt, 'memory' ) }
|
2022-02-06 08:07:53 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-08-04 08:14:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: circularmapper {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 6)}G" }
|
2022-02-06 08:07:53 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-08-04 08:14:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
withName: circulargenerator {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 6)}G" }
|
2022-02-06 08:07:53 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-08-04 08:14:56 +00:00
|
|
|
}
|
2022-03-31 09:06:53 +00:00
|
|
|
|
2021-08-20 08:11:11 +00:00
|
|
|
withName: genotyping_ug {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 6)}G" }
|
2022-02-06 08:07:53 +00:00
|
|
|
errorStrategy = { task.exitStatus in [1,143,137,104,134,139,140] ? 'retry' : 'finish' }
|
2021-08-20 08:11:11 +00:00
|
|
|
}
|
2022-03-31 09:06:53 +00:00
|
|
|
|
2021-08-04 08:14:56 +00:00
|
|
|
withName: preseq {
|
2022-03-31 09:06:53 +00:00
|
|
|
clusterOptions = { "-S /bin/bash -V -l h_vmem=${(task.memory.toGiga() * 6)}G" }
|
2021-08-04 08:14:56 +00:00
|
|
|
errorStrategy = { task.exitStatus in [143,137,104,134,139] ? 'retry' : 'ignore' }
|
|
|
|
}
|
2021-02-14 16:50:20 +00:00
|
|
|
}
|
|
|
|
}
|
2022-03-31 09:06:53 +00:00
|
|
|
|
2021-02-14 16:50:20 +00:00
|
|
|
pathogen_loose {
|
|
|
|
params {
|
|
|
|
config_profile_description = 'Pathogen (loose) MPI-EVA profile, provided by nf-core/configs.'
|
|
|
|
bwaalnn = 0.01
|
|
|
|
bwaalnl = 16
|
|
|
|
}
|
|
|
|
}
|
|
|
|
pathogen_strict {
|
|
|
|
params {
|
|
|
|
config_profile_description = 'Pathogen (strict) MPI-EVA SDAG profile, provided by nf-core/configs.'
|
|
|
|
bwaalnn = 0.1
|
|
|
|
bwaalnl = 32
|
|
|
|
}
|
|
|
|
}
|
|
|
|
human {
|
|
|
|
params {
|
|
|
|
config_profile_description = 'Human MPI-EVA SDAG profile, provided by nf-core/configs.'
|
|
|
|
bwaalnn = 0.01
|
|
|
|
bwaalnl = 16500
|
|
|
|
}
|
|
|
|
}
|
2021-12-07 08:27:28 +00:00
|
|
|
}
|