stlearn.pl.trajectory.tree_plot¶
- stlearn.pl.trajectory.tree_plot(adata: AnnData, library_id: str | None = None, figsize: tuple[float, float] = (10, 4), data_alpha: float = 1.0, use_label: str = 'leiden', spot_size: float | int = 50, fontsize: int = 6, piesize: float = 0.15, zoom: float = 0.1, name: str | None = None, output: str | None = None, dpi: int = 180, show_all: bool = False, show_plot: bool = True, ncols: int = 4, copy: bool = False) AnnData | None[source]¶
Hierarchical tree plot represent for the global spatial trajectory inference.
- Parameters:
adata – Annotated data matrix.
library_id – Library id stored in AnnData.
use_label – Use label result of cluster method.
figsize – Change figure size.
data_alpha – Opacity of the spot.
fontsize – Choose font size.
piesize – Choose the size of cropped image.
zoom – Choose zoom factor.
show_all – Show all cropped image or not.
show_legend – Show legend or not.
dpi – Set dpi as the resolution for the plot.
copy – Return a copy instead of writing to adata.
- Return type:
Nothing