+
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
### Subworkflows

- Linting of patched subworkflows ([#3755](https://github.com/nf-core/tools/pull/3755))
- Update the utils_nfschema_plugin subworkflow to the latest version ([#3814](https://github.com/nf-core/tools/pull/3814))

### General

Expand Down
2 changes: 1 addition & 1 deletion nf_core/pipeline-template/modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
}{% if nf_schema %},
"utils_nfschema_plugin": {
"branch": "master",
"git_sha": "2fd2cd6d0e7b273747f32e465fdc6bcc3ae0814e",
"git_sha": "4b406a74dc0449c0401ed87d5bfff4252fd277fd",
"installed_by": ["subworkflows"]
}{% endif %}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,21 @@ workflow PIPELINE_INITIALISATION {
main:

ch_versions = Channel.empty()

//
// Print version and exit if required and dump pipeline parameters to JSON file
//
UTILS_NEXTFLOW_PIPELINE (
version,
true,
outdir,
workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1
)

{%- if nf_schema %}

//
// Print help message
// Validate parameters and generate parameter summary to stdout
//

{%- if is_nfcore %}
Expand All @@ -68,44 +79,19 @@ workflow PIPELINE_INITIALISATION {
* Software dependencies
https://github.com/{{ name }}/blob/{{ default_branch }}/CITATIONS.md
"""{% endif %}
command = "nextflow run {${workflow.manifest.name} -profile <docker/singularity/.../institute> --input samplesheet.csv --outdir <OUTDIR>"

if(help || help_full) {
log.info paramsHelp(
params.help instanceof String ? params.help : "",
{%- if is_nfcore %}
beforeText: before_text,
afterText: after_text,{% endif %}
command: command,
showHidden: show_hidden,
fullHelp: help_full
)
exit 0
}
{%- endif %}
command = "nextflow run ${workflow.manifest.name} -profile <docker/singularity/.../institute> --input samplesheet.csv --outdir <OUTDIR>"

//
// Print version and exit if required and dump pipeline parameters to JSON file
//
UTILS_NEXTFLOW_PIPELINE (
version,
true,
outdir,
workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1
)

{%- if nf_schema %}

//
// Validate parameters and generate parameter summary to stdout
//
{% if is_nfcore -%}log.info(before_text){%- endif %}
UTILS_NFSCHEMA_PLUGIN (
workflow,
validate_params,
null
null,
help,
help_full,
show_hidden,
{% if is_nfcore -%}before_text{%- else %}""{%- endif %},
{% if is_nfcore -%}after_text{%- else %}""{%- endif %},
command
)
{% if is_nfcore -%}log.info(after_text){%- endif %}
{%- endif %}

//
Expand Down

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

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

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

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载