Skip to content

Commit

Permalink
fix: Stop ppanggolin msa from altering input file (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvfe committed Oct 24, 2023
1 parent 7e494ab commit 53cbe77
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions modules/local/ppanggolin/msa/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ process PPANGGOLIN_MSA {
tuple val(meta), path(pangenome)

output:
tuple val(meta), path("${prefix}_msa") , emit: results
path "${prefix}_msa/msa_all_protein/*.aln", emit: alignments
path "ppanggolin_msa/msa_all_protein/*.aln", emit: alignments
path "versions.yml" , emit: versions

when:
Expand All @@ -23,12 +22,14 @@ process PPANGGOLIN_MSA {
def args = task.ext.args ?: ''
prefix = task.ext.prefix ?: "${meta.id}"
"""
cp $pangenome copied_pangenome.h5
ppanggolin \\
msa \\
$args \\
--cpu $task.cpus \\
--pangenome $pangenome \\
--output "${prefix}"_msa \\
--pangenome copied_pangenome.h5 \\
--output ppanggolin_msa \\
--partition all
cat <<-END_VERSIONS > versions.yml
Expand Down

0 comments on commit 53cbe77

Please sign in to comment.