stlearn.pl.trajectory.tree_plot

stlearn.pl.trajectory.tree_plot(adata: anndata._core.anndata.AnnData, library_id: str = None, figsize: Union[float, int] = 10, 4, data_alpha: float = 1.0, use_label: str = 'louvain', spot_size: Union[float, int] = 50, fontsize: int = 6, piesize: float = 0.15, zoom: float = 0.1, name: str = None, output: str = None, dpi: int = 180, show_all: bool = False, show_plot: bool = True, copy: bool = False) → Optional[anndata._core.anndata.AnnData]

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 clustering 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.

Returns

Return type

Nothing