From b4d8d45f541957cc6c3fecdf215cf74b55f09e07 Mon Sep 17 00:00:00 2001 From: fmalmeida Date: Fri, 19 Apr 2024 15:16:37 +0200 Subject: [PATCH] also save config per sample --- conf/modules.config | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/conf/modules.config b/conf/modules.config index 0d3b9cbe..2fc42b22 100644 --- a/conf/modules.config +++ b/conf/modules.config @@ -238,7 +238,11 @@ if (params.aligner == 'cellrangermulti') { publishDir = [ path: "${params.outdir}/${params.aligner}/count", mode: params.publish_dir_mode, - saveAs: { filename -> filename.equals('versions.yml') ? null : filename } + saveAs: { filename -> + if (filename.equals('versions.yml')) null + else if (filename.equals('cellranger_multi_config.csv')) "${meta.id}/${filename}" + else filename + } ] } withName: 'GUNZIP*' {