Leon Hafner
08/01/2025, 7:55 AMparams object in a pipeline? Should params only be read in <http://main.nf|main.nf> and then passed explicitly into subworkflows, or can subworkflows reference params directly?Felix Kummer
08/01/2025, 7:59 AMparams in subworkflows and params should only be used in <http://main.nf|main.nf> .Felix Kummer
08/01/2025, 8:00 AMSimon Pearce
08/01/2025, 8:01 AMLeon Hafner
08/01/2025, 8:09 AMparams directly there around 100 times (see here for sarek and here for rnaseq).Leon Hafner
08/01/2025, 8:13 AMsubworkflows/ directory, not to the main workflows/<PIPELINE_NAME>/main.nf file, right?Felix Kummer
08/01/2025, 8:40 AMworkflows/<PIPELINE_NAME>/main.nf . Most pipeline use params there because the execution of the workflow in that file is enforced through the top level <http://main.nf|main.nf> and we thus assume named params to be available there.
So I'd say its allowed to use params in workflows/<PIPELINE_NAME>/main.nf .Felix Kummer
08/01/2025, 8:42 AMparams in workflows/<PIPELINE_NAME>/main.nf .Leon Hafner
08/01/2025, 8:43 AMFelix Kummer
08/01/2025, 8:45 AMFelix Kummer
08/01/2025, 8:50 AMparams should only be used in entry workflows, which would be the top level <http://main.nf|main.nf> in nf-core pipelines, but most of our pipelines also use params in workflows/<PIPELINE_NAME>/main.nf.Jonathan Manning
08/01/2025, 8:53 AMJose Espinosa-Carrasco
08/01/2025, 8:54 AMJames Fellows Yates
08/01/2025, 8:57 AMJames Fellows Yates
08/01/2025, 8:57 AMFelix Kummer
08/01/2025, 9:00 AM<http://main.nf|main.nf> (e.g. https://github.com/nf-core/rnaseq/blob/master/main.nf) in the top which includes the actual core workflow in workflows/<PIPELINE_NAME>/main.nf . And most of our pipelines use params in workflows/<PIPELINE_NAME>/main.nf which is discouraged by the new Nextflow guidelines .Felix Kummer
08/01/2025, 9:01 AMparams out of workflows/<PIPELINE_NAME>/main.nf . But for now, its fine to have them in workflows/<PIPELINE_NAME>/main.nf .Adam Talbot
08/01/2025, 10:30 AMMaxime Garcia
08/01/2025, 10:31 AMJames Fellows Yates
08/01/2025, 2:30 PMJames Fellows Yates
08/01/2025, 2:30 PMMaxime Garcia
08/03/2025, 7:29 PM