-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #186 from maxulysse/split_configs
split up config files to be more modular
- Loading branch information
Showing
6 changed files
with
196 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Config file for defining DSL2 per module options and publishing paths | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Available keys to override module options: | ||
ext.args = Additional arguments appended to command in module. | ||
ext.args2 = Second set of arguments appended to command in module (multi-tool modules). | ||
ext.args3 = Third set of arguments appended to command in module (multi-tool modules). | ||
ext.prefix = File name prefix for output files. | ||
---------------------------------------------------------------------------------------- | ||
*/ | ||
|
||
// | ||
// Generic process options for all workflows | ||
// | ||
process { | ||
|
||
publishDir = [ | ||
path: { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" }, | ||
mode: params.publish_dir_mode, | ||
saveAs: { filename -> filename.equals('versions.yml') ? null : filename } | ||
] | ||
|
||
withName: CUSTOM_DUMPSOFTWAREVERSIONS { | ||
publishDir = [ | ||
path: { "${params.outdir}/pipeline_info" }, | ||
mode: params.publish_dir_mode, | ||
pattern: '*_versions.yml' | ||
] | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
/* | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Config file for defining DSL2 per module options and publishing paths | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Available keys to override module options: | ||
ext.args = Additional arguments appended to command in module. | ||
ext.args2 = Second set of arguments appended to command in module (multi-tool modules). | ||
ext.args3 = Third set of arguments appended to command in module (multi-tool modules). | ||
ext.prefix = File name prefix for output files. | ||
---------------------------------------------------------------------------------------- | ||
*/ | ||
|
||
// | ||
// Process options for the SRA workflow | ||
// | ||
process { | ||
|
||
withName: SRA_IDS_TO_RUNINFO { | ||
publishDir = [ | ||
path: { "${params.outdir}/metadata" }, | ||
enabled: false | ||
] | ||
} | ||
|
||
withName: SRA_RUNINFO_TO_FTP { | ||
publishDir = [ | ||
path: { "${params.outdir}/metadata" }, | ||
mode: params.publish_dir_mode, | ||
saveAs: { filename -> filename.equals('versions.yml') ? null : filename } | ||
] | ||
} | ||
|
||
withName: SRA_FASTQ_FTP { | ||
ext.args = '--retry 5 --continue-at - --max-time 1200' | ||
publishDir = [ | ||
[ | ||
path: { "${params.outdir}/fastq" }, | ||
mode: params.publish_dir_mode, | ||
pattern: "*.fastq.gz" | ||
], | ||
[ | ||
path: { "${params.outdir}/fastq/md5" }, | ||
mode: params.publish_dir_mode, | ||
pattern: "*.md5" | ||
] | ||
] | ||
} | ||
|
||
withName: SRATOOLS_PREFETCH { | ||
publishDir = [ | ||
path: { "${params.outdir}/sra" }, | ||
enabled: false | ||
] | ||
} | ||
|
||
withName: SRATOOLS_FASTERQDUMP { | ||
ext.args = '--split-files --include-technical' | ||
publishDir = [ | ||
path: { "${params.outdir}/fastq" }, | ||
mode: params.publish_dir_mode, | ||
pattern: "*.fastq.gz" | ||
] | ||
} | ||
|
||
withName: SRA_TO_SAMPLESHEET { | ||
publishDir = [ | ||
path: { "${params.outdir}/samplesheet" }, | ||
enabled: false | ||
] | ||
} | ||
|
||
withName: SRA_MERGE_SAMPLESHEET { | ||
publishDir = [ | ||
path: { "${params.outdir}/samplesheet" }, | ||
mode: params.publish_dir_mode, | ||
saveAs: { filename -> filename.equals('versions.yml') ? null : filename } | ||
] | ||
} | ||
|
||
withName: MULTIQC_MAPPINGS_CONFIG { | ||
publishDir = [ | ||
path: { "${params.outdir}/samplesheet" }, | ||
mode: params.publish_dir_mode, | ||
saveAs: { filename -> filename.equals('versions.yml') ? null : filename } | ||
] | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/* | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Config file for defining DSL2 per module options and publishing paths | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Available keys to override module options: | ||
ext.args = Additional arguments appended to command in module. | ||
ext.args2 = Second set of arguments appended to command in module (multi-tool modules). | ||
ext.args3 = Third set of arguments appended to command in module (multi-tool modules). | ||
ext.prefix = File name prefix for output files. | ||
---------------------------------------------------------------------------------------- | ||
*/ | ||
|
||
// | ||
// Process options for the Synapse workflow | ||
// | ||
|
||
process { | ||
|
||
withName: SYNAPSE_LIST { | ||
ext.args = '--long' | ||
publishDir = [ | ||
path: { "${params.outdir}/metadata" }, | ||
mode: params.publish_dir_mode, | ||
saveAs: { filename -> filename.equals('versions.yml') ? null : filename } | ||
] | ||
} | ||
|
||
withName: SYNAPSE_GET { | ||
publishDir = [ | ||
[ | ||
path: { "${params.outdir}/fastq" }, | ||
mode: params.publish_dir_mode, | ||
pattern: "*.fastq.gz" | ||
], | ||
[ | ||
path: { "${params.outdir}/fastq/md5" }, | ||
mode: params.publish_dir_mode, | ||
pattern: "*.md5" | ||
] | ||
] | ||
} | ||
|
||
withName: SYNAPSE_SHOW { | ||
publishDir = [ | ||
path: { "${params.outdir}/metadata" }, | ||
mode: params.publish_dir_mode, | ||
saveAs: { filename -> filename.equals('versions.yml') ? null : filename } | ||
] | ||
} | ||
|
||
withName: SYNAPSE_TO_SAMPLESHEET { | ||
publishDir = [ | ||
path: { "${params.outdir}/samplesheet" }, | ||
enabled: false | ||
] | ||
} | ||
|
||
withName: SYNAPSE_MERGE_SAMPLESHEET { | ||
publishDir = [ | ||
path: { "${params.outdir}/samplesheet" }, | ||
mode: params.publish_dir_mode, | ||
saveAs: { filename -> filename.equals('versions.yml') ? null : filename } | ||
] | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters