Ammar Aziz
01/15/2026, 5:24 AMnf-core module create was this line:
output:
tuple val(meta), path("${prefix}.perfile.tsv"), optional:true, emit: summary
script:
...
def prefix = task.ext.prefix ?: "${meta.id}"
The linter was correctly showing an error. After staring at it for a while and asking for help someone spotted the def keyword which defines a local variable, eg only available in script block. For a noob like me I thought the a nextflow process would be all within a single scope. But actually there are supposedly 5 different blocks!
I think adding a comment in the template might be helpful. Not sure what others thing?James Fellows Yates
01/15/2026, 7:48 AMSimon Pearce
01/15/2026, 8:30 AMSimon Pearce
01/15/2026, 8:30 AMSimon Pearce
01/15/2026, 8:33 AMSimon Pearce
01/15/2026, 8:33 AMJames Fellows Yates
01/15/2026, 8:39 AMJames Fellows Yates
01/15/2026, 8:39 AMJames Fellows Yates
01/15/2026, 8:39 AMSimon Pearce
01/15/2026, 8:49 AMAmmar Aziz
01/15/2026, 12:17 PMSimon Pearce
01/15/2026, 12:24 PMAmmar Aziz
01/15/2026, 12:27 PMSimon Pearce
01/15/2026, 12:29 PMAmmar Aziz
01/15/2026, 12:29 PMAmmar Aziz
01/15/2026, 12:30 PM