Skip to content

Commit fba545b

Browse files
committed
increase meta index for multiple input channels
1 parent 0a75afa commit fba545b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

nf_core/module-template/main.nf

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ process {{ component_name_underscore|upper }} {
3333
{%- if inputs %}
3434
// TODO nf-core: Update the information obtained from bio.tools and make sure that it is correct
3535
{%- for input_name, ontologies in inputs.items() %}
36-
{{ 'tuple val(meta), path(' + input_name + ')' if has_meta else 'path ' + input_name }}
36+
{% set meta_index = loop.index|string if not loop.first else '' %}
37+
{{ 'tuple val(meta' + meta_index + '), path(' + input_name + ')' if has_meta else 'path ' + input_name }}
3738
{%- endfor %}
3839
{%- else -%}
3940
{% if not_empty_template -%}

nf_core/module-template/meta.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ input:
2929
{% if inputs -%}
3030
{% for input_name, ontologies in inputs.items() -%}
3131
{% if has_meta %}
32-
- - meta:
32+
- - meta{{ loop.index|string if not loop.first else '' }}:
3333
type: map
3434
description: |
3535
Groovy Map containing sample information

0 commit comments

Comments
 (0)