File tree Expand file tree Collapse file tree 7 files changed +17
-313
lines changed
local/utils_nfcore_fetchngs_pipeline
nf-core/utils_nfschema_plugin Expand file tree Collapse file tree 7 files changed +17
-313
lines changed Original file line number Diff line number Diff line change 3939 "branch" : " master" ,
4040 "git_sha" : " 51ae5406a030d4da1e49e4dab49756844fdd6c7a" ,
4141 "installed_by" : [" subworkflows" ]
42- },
43- "utils_nfschema_plugin" : {
44- "branch" : " master" ,
45- "git_sha" : " 2fd2cd6d0e7b273747f32e465fdc6bcc3ae0814e" ,
46- "installed_by" : [" subworkflows" ]
4742 }
4843 }
4944 }
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ include { getWorkflowVersion } from 'plugin/nf-utils'
1717include { dumpParametersToJSON } from ' plugin/nf-utils'
1818include { checkCondaChannels } from ' plugin/nf-utils'
1919include { UTILS_NFCORE_PIPELINE } from ' ../../nf-core/utils_nfcore_pipeline'
20- include { UTILS_NFSCHEMA_PLUGIN } from ' ../../nf-core/utils_nfschema_plugin'
20+ include { paramsSummaryLog } from ' plugin/nf-schema'
21+ include { validateParameters } from ' plugin/nf-schema'
2122
2223/*
2324~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -50,14 +51,24 @@ workflow PIPELINE_INITIALISATION {
5051 log. warn(" Conda channels are not configured correctly!" )
5152 }
5253 }
54+
5355 //
5456 // Validate parameters and generate parameter summary to stdout
5557 //
56- UTILS_NFSCHEMA_PLUGIN (
57- workflow,
58- validate_params,
59- null ,
60- )
58+ if (validate_params) {
59+ // Print parameter summary to stdout. This will display the parameters
60+ // that differ from the default given in the JSON schema
61+ // TODO log.info(paramsSummaryLog(workflow, parameters_schema: parameters_schema))
62+ log. info(paramsSummaryLog(workflow))
63+
64+ // Validate the parameters using nextflow_schema.json or the schema
65+ // given via the validation.parametersSchema configuration option
66+ // TODO if (parameters_schema) { validateParameters(parameters_schema: parameters_schema)
67+ validateParameters()
68+ }
69+ else {
70+ log. info(paramsSummaryLog(workflow))
71+ }
6172
6273 //
6374 // Check config provided to the pipeline
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments