Skip to content

Commit

Permalink
Like in the genome note pipeline, use the work directory instead of /tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
muffato committed Nov 25, 2023
1 parent 4497965 commit 2f3c372
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ process {
}

withName: SAMTOOLS_COLLATE {
ext.prefix = { "${meta.id}.collate" }
ext.prefix = { "${meta.id}.collate" + (params.use_work_dir_as_temp ? " -T." : "") }
}

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

// Execution options
use_work_dir_as_temp = false


// Boilerplate options
outdir = "./results"
Expand Down
18 changes: 18 additions & 0 deletions nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,21 @@
}
}
},
"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 @@ -236,6 +251,9 @@
{
"$ref": "#/definitions/reference_genome_options"
},
{
"$ref": "#/definitions/execution"
},
{
"$ref": "#/definitions/institutional_config_options"
},
Expand Down

0 comments on commit 2f3c372

Please sign in to comment.