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

View file

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