Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix LSP warnings
  • Loading branch information
dialvarezs committed Nov 17, 2025
commit 5f02cfec59f320144691e2a8e645e7144f7579ab
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ workflow PIPELINE_INITIALISATION {

main:

ch_versions = Channel.empty()
ch_versions = channel.empty()

//
// Print version and exit if required and dump pipeline parameters to JSON file
Expand Down Expand Up @@ -72,7 +72,7 @@ workflow PIPELINE_INITIALISATION {
\033[0;35m {{ name }} ${workflow.manifest.version}\033[0m
-\033[2m----------------------------------------------------\033[0m-
"""
after_text = """${workflow.manifest.doi ? "\n* The pipeline\n" : ""}${workflow.manifest.doi.tokenize(",").collect { " https://doi.org/${it.trim().replace('https://doi.org/','')}"}.join("\n")}${workflow.manifest.doi ? "\n" : ""}
after_text = """${workflow.manifest.doi ? "\n* The pipeline\n" : ""}${workflow.manifest.doi.tokenize(",").collect { doi -> " https://doi.org/${doi.trim().replace('https://doi.org/','')}"}.join("\n")}${workflow.manifest.doi ? "\n" : ""}
* The nf-core framework
https://doi.org/10.1038/s41587-020-0439-x

Expand Down Expand Up @@ -113,7 +113,7 @@ workflow PIPELINE_INITIALISATION {
// Create channel from input file provided through params.input
//

Channel{% if nf_schema %}
channel{% if nf_schema %}
.fromList(samplesheetToList(params.input, "${projectDir}/assets/schema_input.json")){% else %}
.fromPath(params.input)
.splitCsv(header: true, strip: true)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions nf_core/pipeline-template/workflows/pipeline.nf
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ workflow {{ short_name|upper }} {
{%- if modules %}
main:

ch_versions = Channel.empty()
ch_versions = channel.empty()
{%- if multiqc %}
ch_multiqc_files = Channel.empty(){% endif %}
ch_multiqc_files = channel.empty(){% endif %}

{%- if fastqc %}
//
Expand Down Expand Up @@ -62,20 +62,20 @@ workflow {{ short_name|upper }} {
//
// MODULE: MultiQC
//
ch_multiqc_config = Channel.fromPath(
ch_multiqc_config = channel.fromPath(
"$projectDir/assets/multiqc_config.yml", checkIfExists: true)
ch_multiqc_custom_config = params.multiqc_config ?
Channel.fromPath(params.multiqc_config, checkIfExists: true) :
Channel.empty()
channel.fromPath(params.multiqc_config, checkIfExists: true) :
channel.empty()
ch_multiqc_logo = params.multiqc_logo ?
Channel.fromPath(params.multiqc_logo, checkIfExists: true) :
Channel.empty()
channel.fromPath(params.multiqc_logo, checkIfExists: true) :
channel.empty()

{%- if nf_schema %}

summary_params = paramsSummaryMap(
workflow, parameters_schema: "nextflow_schema.json")
ch_workflow_summary = Channel.value(paramsSummaryMultiqc(summary_params))
ch_workflow_summary = channel.value(paramsSummaryMultiqc(summary_params))
ch_multiqc_files = ch_multiqc_files.mix(
ch_workflow_summary.collectFile(name: 'workflow_summary_mqc.yaml'))
{%- endif %}
Expand All @@ -84,7 +84,7 @@ workflow {{ short_name|upper }} {
ch_multiqc_custom_methods_description = params.multiqc_methods_description ?
file(params.multiqc_methods_description, checkIfExists: true) :
file("$projectDir/assets/methods_description_template.yml", checkIfExists: true)
ch_methods_description = Channel.value(
ch_methods_description = channel.value(
methodsDescriptionText(ch_multiqc_custom_methods_description))
{%- endif %}

Expand Down
Loading