Skip to content

Commit 55f9d0a

Browse files
authored
Merge pull request #37 from nourmahfel/dev
Fix annotsv
2 parents 7de7094 + 51fd454 commit 55f9d0a

File tree

2 files changed

+33
-27
lines changed

2 files changed

+33
-27
lines changed

conf/base.config

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88
----------------------------------------------------------------------------------------
99
*/
1010

11+
12+
executor {
13+
cpus = 36 // Total CPUs available on your system
14+
memory = '216.GB' // Total memory available on your system
15+
queueSize = 10 // Max number of tasks that can be queued/running
16+
}
17+
1118
process {
1219

1320
// TODO nf-core: Check the defaults for all processes
@@ -19,13 +26,6 @@ process {
1926
maxRetries = 1
2027
maxErrors = '-1'
2128

22-
// Process-specific resource requirements
23-
// NOTE - Please try and reuse the labels below as much as possible.
24-
// These labels are used and recognised by default in DSL2 files hosted on nf-core/modules.
25-
// If possible, it would be nice to keep the same label naming convention when
26-
// adding in your local modules too.
27-
// TODO nf-core: Customise requirements for specific processes.
28-
// See https://www.nextflow.io/docs/latest/config.html#config-process-selectors
2929
withLabel:process_single {
3030
cpus = { 1 }
3131
memory = { 6.GB * task.attempt }

conf/modules.config

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -666,29 +666,35 @@ process {
666666
}
667667

668668

669-
withName: 'ANNOTSV_SNIFFLES' {
670-
containerOptions = {
671-
workflow.containerEngine == 'docker' ? '--user root' : ''
669+
withName: 'ANNOTSV_SNIFFLES' {
670+
label = 'process_high'
671+
containerOptions = {
672+
workflow.containerEngine == 'singularity' ?
673+
'--writable-tmpfs --bind $PWD --env HOME=$PWD --env TMPDIR=$PWD --env TMP=$PWD' :
674+
'--user root'
672675
}
673-
ext.args = { meta.hpo_terms ? "-vcf 1 -genomeBuild GRCh38 -rankFiltering ${params.rankfiltering} -hpo '${meta.hpo_terms}'" : "-vcf 1 -genomeBuild GRCh38" }
674-
ext.prefix = { "${meta.id}_annotsv" }
675-
publishDir = [
676-
path: { "${params.outdir}/${meta.id}/annotsv_sniffles" },
677-
mode: 'copy'
678-
]
679-
}
676+
ext.args = { meta.hpo_terms ? "-vcf 1 -genomeBuild GRCh38 -rankFiltering ${params.rankfiltering} -hpo '${meta.hpo_terms}'" : "-vcf 1 -genomeBuild GRCh38" }
677+
ext.prefix = { "${meta.id}_annotsv" }
678+
publishDir = [
679+
path: { "${params.outdir}/${meta.id}/annotsv_sniffles" },
680+
mode: 'copy'
681+
]
682+
}
680683

681-
withName: 'ANNOTSV_SVIM' {
682-
containerOptions = {
683-
workflow.containerEngine == 'docker' ? '--user root' : ''
684+
withName: 'ANNOTSV_SVIM' {
685+
label = 'process_high'
686+
containerOptions = {
687+
workflow.containerEngine == 'singularity' ?
688+
'--writable-tmpfs --bind $PWD --env HOME=$PWD --env TMPDIR=$PWD --env TMP=$PWD' :
689+
'--user root'
684690
}
685-
ext.args = { meta.hpo_terms ? "-vcf 1 -genomeBuild GRCh38 -rankFiltering ${params.rankfiltering} -hpo '${meta.hpo_terms}'" : "-vcf 1 -genomeBuild GRCh38" }
686-
ext.prefix = { "${meta.id}_annotsv" }
687-
publishDir = [
688-
path: { "${params.outdir}/${meta.id}/annotsv_svim" },
689-
mode: 'copy'
690-
]
691-
}
691+
ext.args = { meta.hpo_terms ? "-vcf 1 -genomeBuild GRCh38 -rankFiltering ${params.rankfiltering} -hpo '${meta.hpo_terms}'" : "-vcf 1 -genomeBuild GRCh38" }
692+
ext.prefix = { "${meta.id}_annotsv" }
693+
publishDir = [
694+
path: { "${params.outdir}/${meta.id}/annotsv_svim" },
695+
mode: 'copy'
696+
]
697+
}
692698

693699
withName: 'UNTAR_ANNOTSV' {
694700
publishDir = [

0 commit comments

Comments
 (0)