mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-14 21:53:10 +00:00
18 lines
539 B
Text
18 lines
539 B
Text
|
params.settings_path = '/tmp/.ncbi'
|
||
|
params.settings_file = "${params.settings_path}/user-settings.mkfg"
|
||
|
|
||
|
env.NCBI_SETTINGS = params.settings_file
|
||
|
|
||
|
process {
|
||
|
|
||
|
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" }
|
||
|
|
||
|
withName: SRATOOLS_NCBISETTINGS {
|
||
|
containerOptions = {
|
||
|
(workflow.containerEngine == 'singularity') ?
|
||
|
"-B ${params.settings_path}:${params.settings_path}" :
|
||
|
"-v ${params.settings_path}:${params.settings_path}"
|
||
|
}
|
||
|
}
|
||
|
}
|