Skip to content

Commit

Permalink
add if to mashtree
Browse files Browse the repository at this point in the history
  • Loading branch information
erinyoung committed Feb 15, 2024
1 parent f2f3f01 commit 4072652
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subworkflows/phylogenetic_analysis.nf
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ workflow phylogenetic_analysis {
// TODO : if channel doesn't go to to iqtree2, then send to mashtree

// phylogenetic trees
mashtree(for_prokka.map{it -> tuple( it[1]) }.collect())
mashtree(for_prokka.map{it -> if (it) { tuple( it[1]) }}.collect())
iqtree2(ch_core_genome)
phytreeviz(iqtree2.out.newick.mix(mashtree.out.newick))

// SNP matrix
snp_dists(core_genome_evaluation.out.evaluation.map(it->it[0]))
snp_dists(core_genome_evaluation.out.evaluation.map( it -> it[0] ))
heatcluster(snp_dists.out.snp_matrix)

emit:
Expand Down

0 comments on commit 4072652

Please sign in to comment.