diff --git a/conf/modules.config b/conf/modules.config index 8ce91cf..eccef41 100644 --- a/conf/modules.config +++ b/conf/modules.config @@ -32,7 +32,15 @@ process { ] } - // store sample-specifc results in the per-sample subfolder + // Store sample-specific results in per-sample subfolders + withName: 'UNTAR_SPACERANGER_INPUT|UNTAR_DOWNSTREAM_INPUT' { + publishDir = [ + path: { "${params.outdir}/${meta.id}/data/untar" }, + mode: params.publish_dir_mode, + saveAs: { filename -> filename.equals('versions.yml') ? null : filename } + ] + } + withName: FASTQC { publishDir = [ path: { "${params.outdir}/${meta.id}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" },