Skip to content

Commit

Permalink
Merge pull request #2621 from nf-core/fix/nf-test-template-input
Browse files Browse the repository at this point in the history
fix positional input in template
  • Loading branch information
sateeshperi authored Jan 4, 2024
2 parents 9e8f26f + a3ca981 commit b557d7c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nf_core/module-template/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ nextflow_process {
"""
// TODO nf-core: define inputs of the process here. Example:
{% if has_meta %}
input = [
input[0] = [
[ id:'test', single_end:false ], // meta map
file(params.test_data['sarscov2']['illumina']['test_paired_end_bam'], checkIfExists: true)
]
{%- else %}
input = file(params.test_data['sarscov2']['illumina']['test_single_end_bam'], checkIfExists: true)
input[0] = file(params.test_data['sarscov2']['illumina']['test_single_end_bam'], checkIfExists: true)
{%- endif %}
"""
}
Expand All @@ -58,12 +58,12 @@ nextflow_process {
"""
// TODO nf-core: define inputs of the process here. Example:
{% if has_meta %}
input = [
input[0] = [
[ id:'test', single_end:false ], // meta map
file(params.test_data['sarscov2']['illumina']['test_paired_end_bam'], checkIfExists: true)
]
{%- else %}
input = file(params.test_data['sarscov2']['illumina']['test_single_end_bam'], checkIfExists: true)
input[0] = file(params.test_data['sarscov2']['illumina']['test_single_end_bam'], checkIfExists: true)
{%- endif %}
"""
}
Expand Down

0 comments on commit b557d7c

Please sign in to comment.