Fix bug in unexpected param log with false values.#871
Merged
ewels merged 1 commit intonf-core:devfrom Mar 12, 2021
Merged
Conversation
* Refine the log messages a bit and tweak one or two extras. * Define params.input_paths in nextflow.config to avoid core Nextflow warning * Add params.input_paths to params.schema_ignore_params
Contributor
|
Nice fix, thanks! :) Was thinking if it makes sense to force the second call to |
KevinMenden
approved these changes
Mar 12, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-on to #857
Tried to add
params.input_paths = nulltonextflow.configto avoid the warning that Nextflow threw about undefined params and hit a bug in the new unexpected params code:After a bit of digging I figured out that it was because this code was removing anything evaluating to
falsefrom the parameters map:tools/nf_core/pipeline-template/{{cookiecutter.name_noslash}}/lib/NfcoreSchema.groovy
Lines 197 to 200 in 729f03a
So just switching to use
paramsinstead ofcleanedParamswhen printing the value of the unexpected parameter solved the issue.Also included a couple of other minor tweaks, notably just repeating the validation at the end of the pipeline. This is so that we don't have to repeat the code that prints the warnings so a bit less code maintenance in the main pipeline.