@@ -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