phylo2vec.utils.vector.remove_leaf

Contents

phylo2vec.utils.vector.remove_leaf#

phylo2vec.utils.vector.remove_leaf(v, leaf) Tuple[ndarray, int][source]#

Remove a leaf from a Phylo2Vec v

Parameters:
  • v (numpy.ndarray) – Phylo2Vec vector

  • leaf (int) – A leaf node to remove

Returns:

  • v_sub (numpy.ndarray) – Phylo2Vec vector without leaf

  • sister (int) – Sister node of leaf