phlower.pl.plot_pie_fate_tree

phlower.pl.plot_pie_fate_tree(adata: AnnData, graph_name=None, layout_name=None, fate_tree='stream_tree', piesize=0.05, group='group', show_nodes=True, show_legend=False, legend_column=3, color_palette=['#d60000', '#8c3bff', '#018700', '#00acc6', '#97ff00', '#ff7ed1', '#6b004f', '#ffa52f', '#573b00', '#005659', '#0000dd', '#00fdcf', '#a17569', '#bcb6ff', '#95b577', '#bf03b8', '#645474', '#790000', '#0774d8', '#fdf490', '#004b00', '#8e7900', '#ff7266', '#edb8b8', '#5d7e66', '#9ae4ff', '#eb0077', '#a57bb8', '#5900a3', '#03c600', '#9e4b00', '#9c3b4f', '#cac300', '#708297', '#00af89', '#8287ff', '#5d363b', '#380000', '#fdbfff', '#bde6bf', '#db6d01', '#93b8b5', '#e452ff', '#2f5282', '#c36690', '#54621f', '#c49e72', '#038287', '#69e680', '#802690'], bg_alpha=0.2, ax=None)

Piechart show cell type proportions along Trajectory tree in 2d space

Parameters

adata: AnnData

an Annodata object

graph_name: str

graph_name of the starts ends connected graph

layout_name: str

layout name show the graph

fate_tree: str

the fate tree name

piesize: float

the size of the pie

group: str

the group name of the node

show_nodes: bool

show nodes or not

show_legend: bool

show legend or not

legend_column: int

the number of the legend column

color_palette: list

the color palette of the group, default is sns.color_palette(cc.glasbey, n_colors=50).as_hex()

bg_alpha: float

the alpha of the background

ax: matplotlib.axes

the axes of the plot