Skip to content

Commit

Permalink
use complete selectors to gain priority over conf/modules.config
Browse files Browse the repository at this point in the history
  • Loading branch information
maxulysse committed Sep 15, 2022
1 parent e0a3bcb commit ffe6a9a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 6 deletions.
36 changes: 36 additions & 0 deletions conf/test.config
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,42 @@ params {
schema_ignore_params = 'genomes,test_data,snpeff_version,vep_version'
}

process {
withName:'.*:FREEC_SOMATIC'{
ext.args = {
[
"sample":[
inputformat: "pileup",
mateorientation: "FR"
],
"general":[
bedgraphoutput: "TRUE",
noisydata: "TRUE",
minexpectedgc: "0",
readcountthreshold: "1",
sex: meta.sex,
window: "10",
],
"control":[
inputformat: "pileup",
mateorientation: "FR"
]
]
}
}

if (params.tools && params.tools.split(',').contains('mutect2')) {
withName: 'NFCORE_SAREK:SAREK:PAIR_VARIANT_CALLING:GATK_TUMOR_NORMAL_SOMATIC_VARIANT_CALLING:MUTECT2'{
//sample name from when the test data was generated
ext.args = { "--f1r2-tar-gz ${task.ext.prefix}.f1r2.tar.gz --normal-sample normal " }
}
}

withName: '.*:FILTERVARIANTTRANCHES'{
ext.args = { "--info-key CNN_1D --indel-tranche 0" }
}
}

// Enable container engines/virtualisation envs for CI testing
// only works when specified with the profile ENV
// otherwise tests can be done with the regular provided profiles
Expand Down
6 changes: 0 additions & 6 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,6 @@ manifest {
// Load modules.config for DSL2 module specific options
includeConfig 'conf/modules.config'

// Include extra DSL2 module specific options for tests after loading conf/modules.config to avoid conflicts
profiles {
tools_somatic { includeConfig 'conf/test_tools_somatic_modules.config' }
tools_somatic_ascat { includeConfig 'conf/test_tools_somatic_modules.config' }
}

// Function to ensure that resource requirements don't go beyond
// a maximum limit
def check_max(obj, type) {
Expand Down

0 comments on commit ffe6a9a

Please sign in to comment.