Ammar Aziz
10/08/2025, 5:45 AMnextflow.config I have (simplified version):
fasta_header_extra = '\${meta.id}'
to pass onto `modules.config`:
withName: SEQKIT_REPLACE_ILLUMINA {
ext.args = { "-p 'artic-network/fieldbioinformatics_.*\$' -r '${params.fasta_header_extra}'" }
...
}Arthur
10/08/2025, 6:16 AMArthur
10/08/2025, 6:18 AM$ also won't help because I don't think it needs to be escaped in a literal string?
So a first fix attempt could be to try without the escaped dollar, although I still suspect it may not workArthur
10/08/2025, 6:20 AMNiklas Schandry
10/08/2025, 6:54 AM"-r ${meta.id}" in the ext.args closure though and it would work, as far as I am aware you cannot really use params for sample-level things, for reasons explained by Arthur aboveAmmar Aziz
10/08/2025, 10:26 PMAmmar Aziz
10/08/2025, 10:28 PMmeta is not available in nextflow.config but it's available in modules.config.Arthur
10/08/2025, 10:29 PMArthur
10/08/2025, 10:30 PMext.<name> when the value is set as a closure because those closures are evaluated at task runtimeArthur
10/08/2025, 10:30 PMAmmar Aziz
10/09/2025, 4:36 AM