PhyloTree.__init__

PhyloTree.__init__#

missionbio.plotting.phylotree.PhyloTree.__init__

PhyloTree.__init__(labels: Sequence[str], parents: Sequence[Optional[str]], description: Optional[Sequence[str]] = None, marker_size: Union[float, Sequence[float]] = 18, font_size: float = 14, margin: float = 10, marker_gap: Tuple[float, float] = (60, 30)) None#

Create a new PhyloTree instance.

Parameters:
labelsSequence[str]

The labels of the nodes in the tree.

parentsSequence[str]

The parent for each label. This must have the same length as labels and each parent must be present in labels.

descriptionSequence[str]

A long description for each label. This is the value shown on the plot.

font_sizefloat

The font size of the text in the plot

marker_sizefloat

The size of the circular markers used to represent the nodes.

marginfloat

The number of pixels that must be left empty within the plot boundaries on each edge of the plot

marker_gapTuple[float, float]

The gap between the nodes in the x and y direction respectively

Raises:
ValuError:

When the labels are not unique


< Class PhyloTree