Skip to content

feat: get common ancestor for matrices #169

@Neclow

Description

@Neclow

For phylo2vec vectors, get_common_ancestor returns the most recent common ancestor (MRCA) of two nodes in a Phylo2Vec vector node1 and node2 can be leaf nodes (0 to n_leaves) or internal nodes (n_leaves to 2*(n_leaves-1)) (similar to get_common_ancestor in ETE (Python)).

We should implement a similar function for matrices. Optionally, we could return the height of the MRCA for both functions.

Node depth was handled in #171, node height will be treated in a separate issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions