Params dictionary being filled with null values instead of actual values
I have a basic test case that looks like the following (I apologize for the screenshot, GitHub's markdown editor gets confused by the Nextflow script block in the when block):
That param ends up being null when my Nextflow process executes. I am confused as to why this is happening. I have written other test cases where I update the params dictionary and haven't had any issues.
Hi,
You try to update the params dictionary in the process block. Please use the params block.
when {
params {
// define parameters here. Example:
// outdir = "tests/results"
}
process {
"""
// define inputs of the process here. Example:
// input[0] = file("test-file.txt")
"""
}
}
Thank you for your help. What is strange though is that I have updated params in the process block in the past and it has worked as expected. Has something changed with nf-test?