Skip to content

Commit

Permalink
small pangolin improv
Browse files Browse the repository at this point in the history
  • Loading branch information
replikation committed May 5, 2020
1 parent 6fd5241 commit 611a1f0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/pangolin.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ process pangolin {
input:
tuple val(name), path(fasta)
output:
tuple val(name), path("lineage_report_${name}.csv")
path("lineage_report_${name}.csv")
tuple val(name), path("lineage_report_${name}.csv") optional true
path("lineage_report_${name}.csv") optional true
script:
"""
pangolin -t ${task.cpus} ${fasta}
mv lineage_report.csv lineage_report_${name}.csv
find . -name "*.csv" -size 0 -print -delete
"""
}

0 comments on commit 611a1f0

Please sign in to comment.