phlower.pl.fate_velocity_plot

phlower.pl.fate_velocity_plot(adata, fate_tree='fate_tree', layout_name=None, group_name='group', graph_name=None, figtype: str:stream, grid, point = 'grid', grid_density: int = 50, streamdensity: int = 1.2, n_neighbors: int = 4, embedd_label=True, embedd_label_style='text', embedd_label_font=10, show_legend: bool = False, show_nodes=True, radius: float = 50, ax=None, node_alpha: float = 0.5, maxlinewidth=4, alpha: float = 0.5, **kwargs)

Plot fate velocity on a fate tree.

Parameters

adata: anndata.AnnData

Annotated data matrix.

fate_tree: str

The name of the fate tree in adata.uns.

layout_name: str

The name of the layout in adata.uns.

group_name: str

The name of the group in adata.uns.

graph_name: str

The name of the graph in adata.uns.

figtype: str

The type of the figure. “grid” for grid plot, “stream” for stream plot, “point” for point plot.

grid_density: int

The density of the grid.

streamdensity: float

The density of the stream.

n_neighbors: int

The number of neighbors for the nearest neighbor graph.

embedd_label: bool

Whether to show the label of the embedding.

embedd_label_style: str

The style of the label of the embedding. “text” for text label, “arrow” for arrow label.

embedd_label_font: int

The font size of the label of the embedding.

show_legend: bool

Whether to show the legend.

radius: float

The radius of the grid.

ax: matplotlib.axes.Axes

The axes of the plot.

node_alpha: float

The transparency of the nodes.

maxlinewidth: float

The maximum width of the lines.

alpha: float

The transparency of the lines.