Einar
10/17/2025, 6:20 AMfoo, I expect outputs like
• foo_loh.csv
• foo_amplification_pvalues.csv
• foo.csv (new, what I want to add)
I obviously can't use *.csv as a glob, and I wouldn't use ${meta.id} because the user can choose a different prefix. Any suggestions?Evangelos Karatzas
10/17/2025, 6:47 AMEinar
10/17/2025, 6:51 AMmeta.id or a prefix... how do I handle such a case? Or I just focus on one?
The others are easier because I can do *_loh.csv, it's just this one that is a plain .csv.Evangelos Karatzas
10/17/2025, 7:00 AMprefix = task.ext.prefix ?: "${meta.id}"
or you overwrite it through the modules configuration file. so the outputs should be:
output:
tuple val(meta), path("${prefix}_loh.csv") , emit: loh
tuple val(meta), path("${prefix}_amplification_pvalues.csv"), emit: amp
tuple val(meta), path("${prefix}.csv") , emit: csv
path "versions.yml" , emit: versions
something like thisEinar
10/17/2025, 7:25 AMdef makes the variable local, doesn't it?Evangelos Karatzas
10/17/2025, 7:26 AMEinar
10/17/2025, 7:26 AM