James Fellows Yates
11/12/2025, 11:06 AM--kmcp_compute_options="-k 33" becomes --kmcp_compute_options "-k 33" which then Nextflow thinks -k 33 is a pipeline parameterPhil Ewels
11/12/2025, 11:26 AMJames Fellows Yates
11/12/2025, 11:26 AMPhil Ewels
11/12/2025, 11:27 AM<http://main.nf|main.nf>
println("test" + params.test)
println("k: " + params.k)
❯ nextflow run <http://main.nf|main.nf> --test "-k 33"
N E X T F L O W ~ version 25.10.0
Launching `<http://main.nf|main.nf>` [peaceful_archimedes] DSL2 - revision: 861e53ea7b
test-k 33
WARN: Access to undefined parameter `k` -- Initialise it to a default value eg. `params.k = some_value`
k: nullPhil Ewels
11/12/2025, 11:27 AMJames Fellows Yates
11/12/2025, 11:27 AM-k as a pipeline parameter therePhil Ewels
11/12/2025, 11:27 AM❯ nextflow run <http://main.nf|main.nf> --test="-k 33"
N E X T F L O W ~ version 25.10.0
Launching `<http://main.nf|main.nf>` [reverent_shannon] DSL2 - revision: dfa4c74f2b
test: -k 33
WARN: Access to undefined parameter `k` -- Initialise it to a default value eg. `params.k = some_value`
k: nullJames Fellows Yates
11/12/2025, 11:28 AMJames Fellows Yates
11/12/2025, 11:28 AMPhil Ewels
11/12/2025, 11:28 AMBut it's interpretingNo it isn't, it's a string?as a pipeline parameter there-k
James Fellows Yates
11/12/2025, 11:28 AMWARN: Access to undefined parameter-- Initialise it to a default value eg.kparams.k = some_value
Phil Ewels
11/12/2025, 11:28 AMprintln("k: " + params.k)James Fellows Yates
11/12/2025, 11:28 AMPhil Ewels
11/12/2025, 11:28 AMprintln then that warning goes awayJames Fellows Yates
11/12/2025, 11:29 AMJames Fellows Yates
11/12/2025, 11:29 AMPhil Ewels
11/12/2025, 11:29 AMparams from NextflowJames Fellows Yates
11/12/2025, 11:29 AMJames Fellows Yates
11/12/2025, 11:29 AMJames Fellows Yates
11/12/2025, 11:31 AMnextflow run nf-core/createtaxdb -r 1.0.0 -profile test_minimal,docker --outdir output --build_kmcp --kmcp_build_options="-k 33"
Makes
* --build_kmcp (--kmcp_build_options=-k 33): Value is [string] but should be [boolean]Phil Ewels
11/12/2025, 11:31 AMnextflow run nf-core/createtaxdb -r 1.0.0 -profile test_minimal,docker --kmcp_build_options="-k 33" --build_kmcpPhil Ewels
11/12/2025, 11:32 AMJames Fellows Yates
11/12/2025, 11:35 AMJames Fellows Yates
11/12/2025, 11:36 AM--kmcp_build_options="-k 33" --build_kmcp
works, but
--build_kmcp --kmcp_build_options="-k 33"
complains ...Maxime Garcia
11/12/2025, 11:54 AMNicolas Vannieuwkerke
11/12/2025, 12:02 PMJames Fellows Yates
11/12/2025, 12:05 PMnextflow run nf-core/createtaxdb -r 1.0.0 -profile test_minimal,docker --outdir output_foo --build_kmcp --kmcp_buil
d_options='-k 33'
ERROR ~ Validation of pipeline parameters failed!
-- Check '.nextflow.log' file for details
The following invalid input values have been detected:
* --build_kmcp (--kmcp_build_options=-k 33): Value is [string] but should be [boolean]Nicolas Vannieuwkerke
11/12/2025, 12:06 PMPhil Ewels
11/12/2025, 1:45 PM=Phil Ewels
11/12/2025, 1:47 PM<http://main.nf|main.nf>
println(params.test)
println(params.bool)
✅ Bool flag last
❯ nextflow run <http://main.nf|main.nf> --test="-k 33" --bool
N E X T F L O W ~ version 25.10.0
Launching `<http://main.nf|main.nf>` [peaceful_gilbert] DSL2 - revision: 233480640e
-k 33
true
❌ Bool flag first, second param using =
❯ nextflow run <http://main.nf|main.nf> --bool --test="-k 33"
N E X T F L O W ~ version 25.10.0
Launching `<http://main.nf|main.nf>` [zen_engelbart] DSL2 - revision: 233480640e
WARN: Access to undefined parameter `test` -- Initialise it to a default value eg. `params.test = some_value`
null
--test=-k 33
✅ Bool flag first, no =
❯ nextflow run <http://main.nf|main.nf> --bool --test "-k 33"
N E X T F L O W ~ version 25.10.0
Launching `<http://main.nf|main.nf>` [compassionate_brahmagupta] DSL2 - revision: 233480640e
-k 33
truePhil Ewels
11/12/2025, 1:47 PMnextflow run nf-core/createtaxdb -r 1.0.0 -profile test_minimal,docker --outdir output --build_kmcp --kmcp_build_options "-k 33"James Fellows Yates
11/12/2025, 2:01 PMJames Fellows Yates
11/12/2025, 2:02 PMnextflow run nf-core/createtaxdb -r 1.0.0 -profile test_minimal,docker --outdir output_foo --build_kmcp --kmcp_build_options='-k 33'
ERROR ~ Validation of pipeline parameters failed!
-- Check '.nextflow.log' file for details
The following invalid input values have been detected:
* --build_kmcp (--kmcp_build_options=-k 33): Value is [string] but should be [boolean]Nicolas Vannieuwkerke
11/12/2025, 2:02 PMtrue as the boolean value?James Fellows Yates
11/12/2025, 2:02 PM= I have to send later, taking my daughter to the ice rink atmJames Fellows Yates
11/12/2025, 2:02 PMJames Fellows Yates
11/12/2025, 2:03 PM= because then we get quoting issuesJames Fellows Yates
11/12/2025, 2:54 PMJames Fellows Yates
11/12/2025, 2:55 PM=)
https://hackmd.io/@nf-core/HJq5oGzxWgJames Fellows Yates
11/12/2025, 2:55 PMJames Fellows Yates
11/12/2025, 2:55 PMJames Fellows Yates
11/12/2025, 2:55 PMNicolas Vannieuwkerke
11/12/2025, 2:56 PMJames Fellows Yates
11/12/2025, 2:58 PMPhil Ewels
11/12/2025, 3:05 PMJames Fellows Yates
11/12/2025, 3:07 PMJames Fellows Yates
11/12/2025, 3:07 PMJames Fellows Yates
11/12/2025, 3:07 PMJames Fellows Yates
11/12/2025, 3:07 PMJames Fellows Yates
11/12/2025, 3:07 PMArthur
11/12/2025, 8:44 PMJames Fellows Yates
11/13/2025, 5:37 AMPhil Ewels
11/13/2025, 7:05 AMPhil Ewels
11/13/2025, 7:05 AMPhil Ewels
11/13/2025, 7:06 AMArthur
11/13/2025, 7:15 AMJames Fellows Yates
11/13/2025, 7:23 AMPhil Ewels
11/13/2025, 8:19 AM