mushi.mu
- class mu(change_points, Z, mutation_types)[source]
Bases:
History
Mutation spectrum history (MuSH) \(\boldsymbol\mu(t)\).
- Parameters:
Example
>>> import mushi >>> import numpy as np
>>> mu = mushi.mu(np.array([1, 10, 100, 1000]), ... np.ones((5, 2)), ... ['TCC>TTC', 'GAA>GGA'])
Methods
Return time grid and values in each cell.
Test if time grid is the same as another instance.
Clustermap of compositionally centralized MuSH.
Generator yielding epochs as tuples: (start_time, end_time, value)
Plot history.
Plot the cumulative mutation rate, like a Muller plot.
Attributes
Read-only alias to vals attribute in base class.
mutation_types
- arrays()
Return time grid and values in each cell.
- check_grid(other)
Test if time grid is the same as another instance.
- Parameters:
other (
History
) – another History object
- epochs()
Generator yielding epochs as tuples: (start_time, end_time, value)
- property Z
Read-only alias to vals attribute in base class.