Skip to content

Commit

Permalink
Merge branch 'fix-deep-copy' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
alpae committed Jul 31, 2024
2 parents ad7ec22 + 3f451d1 commit bd470a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions FastOMA/_infer_subhog.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import collections
import csv
import itertools
from copy import deepcopy
from pathlib import Path
import gzip

Expand Down Expand Up @@ -436,7 +435,7 @@ def infer_genetree_from_msa(self, msa):
return genetree

def infer_rooted_genetree(self, gene_tree: TreeNode):
genetree = deepcopy(gene_tree)
genetree = gene_tree.copy()
if self.conf.gene_rooting_method == "midpoint":
r_outgroup = genetree.get_midpoint_outgroup()
genetree.set_outgroup(r_outgroup) # print("Midpoint rooting is done for gene tree.")
Expand Down

0 comments on commit bd470a5

Please sign in to comment.