Skip to content

Commit

Permalink
Merge pull request #93 from sanger-tol/hotfix
Browse files Browse the repository at this point in the history
Hotfixes for production
  • Loading branch information
muffato authored Nov 21, 2023
2 parents 3a60381 + 65133a6 commit 273bdf5
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
10 changes: 7 additions & 3 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ process {
}

withName: BED_SORT {
ext.args = { "-k4 --parallel=${task.cpus} -S${task.memory.giga}G" }
ext.args = { "-k4 --parallel=${task.cpus} -S${task.memory.mega - 100}M" + (params.use_work_dir_as_temp ? " -T." : "") }
ext.prefix = { "${meta.id}_sorted" }
}

withName: FILTER_SORT {
ext.args = { "-k3,3d -k7,7d --parallel=${task.cpus} -S${task.memory.giga}G" }
ext.args = { "-k3,3d -k7,7d --parallel=${task.cpus} -S${task.memory.mega - 100}M" + (params.use_work_dir_as_temp ? " -T." : "") }
ext.prefix = { "${meta.id}_sorted" }
}

Expand Down Expand Up @@ -62,7 +62,11 @@ process {

withName: FASTK_FASTK {
scratch = false // Disable scratch to get around bug https://github.com/nextflow-io/nextflow/issues/2983 - from genomeassembler
ext.args = { "-t1 -k${params.kmer_size}" }
ext.args = { "-t1 -k${params.kmer_size}" + (params.use_work_dir_as_temp ? " -P." : "") }
}

withName: MERQURYFK_MERQURYFK {
ext.args = { (params.use_work_dir_as_temp ? "-P." : "") }
}

withName: CREATETABLE {
Expand Down
3 changes: 3 additions & 0 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ params {
// References
fasta = null

// Execution options
use_work_dir_as_temp = false

// MultiQC options
multiqc_config = null
multiqc_title = null
Expand Down
18 changes: 18 additions & 0 deletions nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,21 @@
},
"required": ["fasta"]
},
"execution": {
"title": "Execution",
"type": "object",
"description": "Control the execution of the pipeline.",
"default": "",
"properties": {
"use_work_dir_as_temp": {
"type": "boolean",
"description": "Set to true to make tools (e.g. sort, FastK, MerquryFK) use the work directory for their temporary files, rather than the system default.",
"fa_icon": "fas fa-arrow-circle-down",
"hidden": true
}
},
"fa_icon": "fas fa-running"
},
"institutional_config_options": {
"title": "Institutional config options",
"type": "object",
Expand Down Expand Up @@ -290,6 +305,9 @@
{
"$ref": "#/definitions/reference_genome_options"
},
{
"$ref": "#/definitions/execution"
},
{
"$ref": "#/definitions/institutional_config_options"
},
Expand Down

0 comments on commit 273bdf5

Please sign in to comment.