Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extra_salmon_quant_args quote issue #1257

Closed
kdivilov opened this issue Mar 11, 2024 · 5 comments
Closed

extra_salmon_quant_args quote issue #1257

kdivilov opened this issue Mar 11, 2024 · 5 comments
Milestone

Comments

@kdivilov
Copy link

Description of the bug

Setting --extra_salmon_quant_args "--noLengthCorrection" leads to the following error message:
The following invalid input values have been detected: * --extra_salmon_quant_args: expected type: String, found: Boolean (true)

I believe the reason for this error is that the quotes surrounding --noLengthCorrection are removed somewhere along the way. This is based on there being no quotes around it in the DEBUG nextflow.cli.Launcher line in the log file.

Command used and terminal output

No response

Relevant files

No response

System information

Nextflow version 23.10.0
nf-core/rnaseq 3.14.0
singularity

@kdivilov kdivilov added the bug Something isn't working label Mar 11, 2024
@drpatelh drpatelh added this to the 3.15.0 milestone May 13, 2024
@pmoris
Copy link
Contributor

pmoris commented May 15, 2024

I just encountered this issue myself while working on a custom pipeline that uses the same extra_args option as the rnaseq pipeline. From what I can tell, the problem only appears when providing a single extra argument, but it works fine for multiple ones.

For example:

--fastp_extra_args '--trim_poly_x' # interpreted as --trim_poly_x: true at the nextflow level
--fastp_extra_args '--trim_poly_x -y' # both args are interpreted by fastp only

The modules.config entry for the FASTP module contains this line:

params.fastp_extra_args ?: ''

And the parameter was also made available in the nextflow.config file.

Single and double quotes appear to behave similarly.

All of the above applies to the CLI, I did not test the behaviour when using a params.yml file.

@pinin4fjords
Copy link
Member

pinin4fjords commented May 30, 2024

This is something to do with nf-validation I think. I'll dig into that, and maybe #1290 will help. I was wrong- this is the CLI, see nf-core/fetchngs#308 (comment).

For now, I've noticed that prepending the string with a space also forces the string interpretation:

 --extra_salmon_quant_args " --noLengthCorrection"

@pinin4fjords
Copy link
Member

https://nfcore.slack.com/archives/C056RQB10LU/p1717083898763659 to follow possible resolution via nf-validation

@ewels
Copy link
Member

ewels commented May 31, 2024

Also I think using an = should be another short term fix:

 --extra_salmon_quant_args="--noLengthCorrection"

@pinin4fjords
Copy link
Member

Thanks @ewels !

Closing this now, since it's not an rnaseq issue and possibilities for full resolution lie elsewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants