-
Notifications
You must be signed in to change notification settings - Fork 193
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
nf-core launch --id xxx
doesn't strip default params
#976
Comments
Update: same effect when doing Using the command line wizard, the defaults are stripped. |
So after investigating this a little more, it's not that it wasn't removing the defaults - it's that it wasn't removing stuff that didn't have a default. So it was loads of flags and things that were initialised as Also then found some issues with the fact that the default values weren't being sanitised after coming back from the web, so could have booleans with default values of |
* If a param doesn't have a default in the schema and the input is False / None / , strip it * Sanitise the default values in the schema so that they are the correct type * Don't surround command-line params with quotes if numeric Fixes nf-core#976
As a note, I see that when I run using the From the point of reproducibility, as a user I would really like to see all "relevant" options written in the file that is downloaded - even the ones with defaults. Then it would more easy, at least to me, to see what I actually did run. The key word would be "relevant". You may, for example, have a lot of /Johan |
@nylander - I like the idea, but this would be extremely difficult to implement. The pipeline author would have to manually curate all related parameters which would be a lot of work for not much gain (in my opinion). We don't save all options by default as this makes it more difficult to use the parameters file again in the future with a different version of the pipeline (for example, defaults may change for a good reason). However, Also note that the pipeline runs themselves log every parameter used, so you can refer back to that. We have also discussed / loosely planned to save a JSON file that could be used to rerun the pipeline as one of the pipeline outputs (though this hasn't been written yet). |
If you use the web launch tool directly, after filling in the form you are given a
nf-core launch
command you can run, eg,nf-core launch --id 1616773347_cbd91cd92761
. Running this then pulls the input params JSON. It should strip out all of the default parameters (the web preview shows this, and the command line launch does this), but it's not - it saves all parameters to the JSON file.Need to add in the relevant strip parameters function into the relevant bit of code on the cli tool here.
The text was updated successfully, but these errors were encountered: