- trisicell.pl.dendro_tree(tree, width=1200, height=500, dpi=300, cell_info=None, label_color='group_color', line_size=0.4, tiplab_size=2.5, inner_node_type='nmuts', inner_node_size=2, distance_labels_to_bottom=4, annotation=None, output_file=None)
Draw the tree in dendro fromat.
networkx.DiGraph) – The input tree.
int, optional) – Width of the figure, by default 8
int, optional) – Height of the figure, by default 3
int, optional) – The resolution, by default 300
pandas.DataFrame, optional) – Information about cells such as color, expression values of genes and etc, by default None
str, optional) – The column name in which colors of cells are stored in the dataframe provided as
cell_info, by default “group_color”
float, optional) – Line size of the tree, by default 0.4
float, optional) – Cell name size in the tree, by default 2.5
str, optional) –
The format of the inner nodes (i.e. mutations), by default “nmuts” Values are:
nmuts: only number of mutations
nodeid: only node id
both: both number of mutations and node id
int, optional) – Size of the inner nodes (i.e. mutations), by default 2
int, optional) – Distance cell names to the bottom of the figure, by default 4
list, optional) – List of gene names provided in the column dataframe of
cell_infoin to be annotated in the bottom of the tree, by default 
str, optional) – Path to a file for saving the tree in, by default None
- Return type
The cell names in the tree must be identical to the index of
cell_infodataframe if it was provided.