AlifestdIplotxShimNumpy
- class AlifestdIplotxShimNumpy
Numpy-backed iplotx
TreeDataProviderfor alife-standard data.This class assumes contiguous ids (
id == row index) and topologically sorted rows (ancestors appear before descendants).Parameters
- ancestor_idsnp.ndarray
Integer array of ancestor ids; roots satisfy
ancestor_ids[i] == i.- namesnp.ndarray, optional
Per-node name strings.
- branch_lengthsnp.ndarray, optional
Per-node branch lengths (edge from parent to this node).
- __init__(ancestor_ids: ndarray, names: ndarray | None = None, branch_lengths: ndarray | None = None) None[source]
Methods
- __init__(ancestor_ids: ndarray, names: ndarray | None = None, branch_lengths: ndarray | None = None) None[source]
- get_subtree(node: _AlifestdNode) AlifestdIplotxShimNumpy[source]