88========================================================================================
99*/
1010
11- include { completionEmail } from ' ../../nf-core/utils_nfcore_pipeline'
12- include { completionSummary } from ' ../../nf-core/utils_nfcore_pipeline'
13- include { imNotification } from ' ../../nf-core/utils_nfcore_pipeline'
14- include { paramsSummaryMap } from ' plugin/nf-schema'
15- include { samplesheetToList } from ' plugin/nf-schema'
16- include { UTILS_NEXTFLOW_PIPELINE } from ' ../../nf-core/utils_nextflow_pipeline'
17- include { UTILS_NFCORE_PIPELINE } from ' ../../nf-core/utils_nfcore_pipeline'
18- include { UTILS_NFSCHEMA_PLUGIN } from ' ../../nf-core/utils_nfschema_plugin'
11+ include { completionEmail } from ' ../../nf-core/utils_nfcore_pipeline'
12+ include { completionSummary } from ' ../../nf-core/utils_nfcore_pipeline'
13+ include { imNotification } from ' ../../nf-core/utils_nfcore_pipeline'
14+ include { paramsSummaryMap } from ' plugin/nf-schema'
15+ include { samplesheetToList } from ' plugin/nf-schema'
16+ include { getWorkflowVersion } from ' plugin/nf-utils'
17+ include { dumpParametersToJSON } from ' plugin/nf-utils'
18+ include { checkCondaChannels } from ' plugin/nf-utils'
19+ include { UTILS_NFCORE_PIPELINE } from ' ../../nf-core/utils_nfcore_pipeline'
20+ include { UTILS_NFSCHEMA_PLUGIN } from ' ../../nf-core/utils_nfschema_plugin'
1921
2022/*
2123~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -35,23 +37,26 @@ workflow PIPELINE_INITIALISATION {
3537
3638 main :
3739
38- //
39- // Print version and exit if required and dump pipeline parameters to JSON file
40- //
41- UTILS_NEXTFLOW_PIPELINE (
42- version,
43- true ,
44- outdir,
45- workflow. profile. tokenize(' ,' ). intersect([' conda' , ' mamba' ]). size() >= 1
46- )
40+ ch_versions = Channel . empty()
4741
42+ // Plugin-based parameter dump and version info
43+ if (outdir) {
44+ dumpParametersToJSON(outdir, params)
45+ }
46+ def version_str = getWorkflowVersion(workflow. manifest. version, workflow. commitId)
47+ println (" Pipeline version: ${ version_str} " )
48+ if (workflow. profile && workflow. profile. contains(' conda' )) {
49+ if (! checkCondaChannels()) {
50+ log. warn(" Conda channels are not configured correctly!" )
51+ }
52+ }
4853 //
4954 // Validate parameters and generate parameter summary to stdout
5055 //
51- UTILS_NFSCHEMA_PLUGIN (
56+ UTILS_NFSCHEMA_PLUGIN (
5257 workflow,
5358 validate_params,
54- null
59+ null ,
5560 )
5661
5762 //
0 commit comments