Skip to content

Commit

Permalink
Fix distance matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
aghozlane committed Nov 26, 2024
1 parent d1e364e commit 33284a2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions meteor/phylogeny.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,12 @@ def process_msp_file(
if self.gtr:
d = EstimateDistances(aligned_seqs, submodel=GTR())
d.run(show_progress=False)
# Create UPGMA Tree
mycluster = upgma(d.get_pairwise_distances())
else:
d = aligned_seqs.distance_matrix(calc="tn93", show_progress=False)
dists = aligned_seqs.distance_matrix(calc="tn93", show_progress=False)
mycluster = upgma(dists)

# Create UPGMA Tree
mycluster = upgma(d.get_pairwise_distances())
mycluster = mycluster.unrooted_deepcopy()

with tree_file.open("w") as f:
Expand Down

0 comments on commit 33284a2

Please sign in to comment.