Node.py
def attach_clade_and_fix(self, helper, tree, clade):
        """
        Attaches a clade to the phylogeny tree and fixes everything
        """
        for n in clade.traverse():
            if not tree.k_losses_list[n.mutation_id] <= helper.k:
                n.delete(prevent_nondicotomic=False)
        self.attach_clade(helper, tree, clade)
        self.fix_for_losses(helper, tree)
        # self.check_integrity()

        Attaches a clade to the phylogeny tree and fixes everything
        
Attaches a clade to the phylogeny tree and fixes everything
Attaches a clade to the phylogeny tree and fixes everything
def attach_clade_and_fix(self, helper, tree, clade):
        for n in clade.traverse():
            if not tree.k_losses_list[n.mutation_id] <= helper.k:
                n.delete(prevent_nondicotomic=False)
        self.attach_clade(helper, tree, clade)
        self.fix_for_losses(helper, tree)
def attach_clade_and_fix ( self , helper , tree , clade ) : for n in clade . traverse ( ) : if not tree . k_losses_list [ n . mutation_id ] <= helper . k : n . delete ( prevent_nondicotomic = False ) self . attach_clade ( helper , tree , clade ) self . fix_for_losses ( helper , tree )
Attaches a clade to the phylogeny tree and fixes everything
Attaches a clade to the phylogeny tree and fixes everything
"""
        Attaches a clade to the phylogeny tree and fixes everything
        """ # self.check_integrity()
self
helper
tree
clade