Skip to content
Open
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
3 changes: 3 additions & 0 deletions nf_core/module-template/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ process {{ component_name_underscore|upper }} {
script:
def args = task.ext.args ?: ''
{% if has_meta -%}
// TODO nf-core: The $prefix variable as defined below is ONLY available within the script block.
// If $prefix is required elsewhere (eg in output block), remove the def keyword.
// For further information on variable scope see https://midnighter.github.io/nextflow-gotchas/gotchas/variable-scope/
def prefix = task.ext.prefix ?: "${meta.id}"
{%- endif %}
{% if not_empty_template -%}
Expand Down
Loading