PhyNetPy Documentation

Library for the Development and Use of Phylogenetic Network Methods

Phylo Module v1.0.0

Core Branch class for storing phylogenetic edge attributes (length, inheritance probability).

Author:
Mark Kessler
Source:
Phylo.py

Contents

Branch

class Branch

A class that represents a branch in a phylogenetic network.

Properties

length -> float property

Get the length of the branch.

inheritance_probability -> float property

Get the inheritance probability of the branch.

parent_id -> str property

Get the parent id of the branch.

Constructor

__init__(length: float = None, inheritance_probability: float = None, parent_id: str = None) -> None

Initialize a Branch object.

Methods

__len__ -> float

Get the length of the branch.

length(value: float) -> None

Set the length of the branch.

inheritance_probability(value: float) -> None

Set the inheritance probability of the branch.

parent_id(value: str) -> None

Set the parent id of the branch.

__str__ -> str

Return a string representation of the branch.

__repr__ -> str

Return a string representation of the branch.

Navigation

Modules

This Page