trisicell.pl.clonal_tree
- trisicell.pl.clonal_tree(tree, muts_as_number=False, cells_as_number=False, show_id=False, cell_info=None, output_file=None, color_attr=None, dpi=150)[source]
Draw the tree in clonal format.
This functions plots the tree in which edges are mutations and nodes are cells.
- Parameters
tree (
networkx.DiGraph
) – The input tree.muts_as_number (
bool
, optional) – Change the mutation list to a number at edges, by default Falsecells_as_number (
bool
, optional) – Change the cell list to a number at edges, by default Falseshow_id (
bool
, optional) – Whether to show IDs of nodes and edges or not, by default Truecell_info (
pandas.DataFrame
, optional) – Information of cells for coloring the nodes by a pie chart, by default Noneoutput_file (
str
, optional) – Path to a file for saving the tree in, by default Nonecolor_attr (
str
, optional) – Attributes in thecell_info
dataframe for coloring the nodes, by default Nonedpi (
int
, optional) – Resolution of rendered figures – this influences the size of figures in notebooks, by default 150
- Returns
- Return type