Summary lib function prints false
as different to the schema when no default
#971
Labels
false
as different to the schema when no default
#971
The
NfcoreSchema
lib functionparams_summary_map
prints quite a lot of values for the summary when they do not vary from the schema.nextflow.config
is set tonull
orfalse
and the pipeline schema does not have a default parameter setExample output from the nf-core/methylseq pipeline using
-profile test
:I think that a lot of this is is because the schema default for strings is set to an empty string if it is not set:
tools/nf_core/pipeline-template/lib/NfcoreSchema.groovy
Lines 509 to 518 in d0a6649
This then means that the default doesn't match it in this block:
tools/nf_core/pipeline-template/lib/NfcoreSchema.groovy
Lines 538 to 540 in d0a6649
I wonder if we should just delete the first block (I don't think that should break anything, right?) and standardise that unset parameters should be defined as
null
innextflow.config
. I had a discussion with @drpatelh in Slack about this the other day I think too.For the memory & time, I wonder if we just try and parse all strings as memory / time units - if it succeeds for both the param and the default we can save them as the correct unit and the default matching should work.
The text was updated successfully, but these errors were encountered: