Lea Picard (leapfroggie_)
10/18/2025, 9:07 PMscript:
def args = task.ext.args ?: ''
prefix = task.ext.prefix ?: "${meta.id}"
extension = "fastq"
if ("$fastx" ==~ /.+\.fasta|.+\.fasta.gz|.+\.fa|.+\.fa.gz|.+\.fas|.+\.fas.gz|.+\.fna|.+\.fna.gz|.+\.fsa|.+\.fsa.gz/ ) {
extension = "fasta"
}
extension = fastx.toString().endsWith('.gz') ? "${extension}.gz" : extension
// SeqKit/rmdup takes care of compressing the output: https://bioinf.shenwei.me/seqkit/usage/#rmdup
if("${prefix}.${extension}" == "$fastx") error "Input and output names are the same, use \"task.ext.prefix\" to disambiguate!"
$fastx (file.fasta) and ${prefix}.${extension} happen to evaluate to the same. If I understand correctly, setting something through task.ext.prefix will replace ${meta.id} entirely, which will then cause problems with published results as I will have multiple files of the same name for anything coming out of SEQKIT_RMDUP and downstream steps when running multiple samples.
What would be the best approach in that case, modify the module to take into account this case (ie change so that task.ext.prefix get appended to ${meta.id} when provided instead of replacing it) or change by meta.id in the entry channel so that the two expressions don't evaluate to the same anymore?James Fellows Yates
10/19/2025, 5:41 AMmodule.sconfig to specify a new prefix, and you can still specify `meta.id`afain:
https://github.com/nf-core/taxprofiler/blob/master/conf%2Fmodules.config#L203James Fellows Yates
10/19/2025, 5:42 AM{}James Fellows Yates
10/19/2025, 5:43 AMLea Picard (leapfroggie_)
10/19/2025, 6:29 AM