Apply suggestions from code review

Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>
This commit is contained in:
Kevin Menden 2021-01-29 12:33:37 +01:00 committed by GitHub
parent 14ade8060f
commit 8f2f936cd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View file

@ -19,10 +19,10 @@ process PANGOLIN {
}
input:
tuple val(meta), path(assembly)
tuple val(meta), path(fasta)
output:
tuple val(meta), path('*.lineage_report.csv') , emit: lineage
tuple val(meta), path('*.lineage_report.csv'), emit: report
path '*.version.txt' , emit: version
script:
@ -30,9 +30,9 @@ process PANGOLIN {
def prefix = options.suffix ? "${meta.id}.${options.suffix}" : "${meta.id}"
"""
pangolin \\
$assembly \\
--outfile ${prefix}.lineage_report.csv \\
$options.args
$fasta\\
--outfile ${prefix}.lineage_report.csv \\
$options.args
pangolin --version | sed "s/pangolin //g" > ${software}.version.txt
"""

View file

@ -37,13 +37,13 @@ input:
type: map
description: |
Groovy Map containing sample information
- assembly:
- fasta:
type: file
description: |
The virus genome assembly to be evaluated
output:
- lineage_report:
- report:
type: file
description: The lineage report
pattern: "{prefix}.lineage_report.csv"