-
Notifications
You must be signed in to change notification settings - Fork 744
Closed
Labels
Description
Hi,
In nextflow 25.04.3, this worked:
Defined functions at the top of the nextflow script:
sampleBaseDir = { individual_id, sample_id -> "${params.analysis_output_dir}/${params.analysis_id}.${individual_id}.${sample_id}" }
dirProcessReads = { individual_id, sample_id -> "${sampleBaseDir(individual_id, sample_id)}/processedReads" }Then in a process do:
publishDir { dirProcessReads(individual_id, sample_id) }, mode: 'link'But in nextflow 25.10.0, this is giving an error:
ERROR ~ Unexpected error while finalizing task 'mergeAlignedSampleBAMs (mergeAlignedSampleBAMs: SampleID' - cause: No such property: individual_id for class: nextflow.script.dsl.ProcessDslV1