stlearn.pl.trajectory.local_plot¶
-
stlearn.pl.trajectory.local_plot(adata: anndata._core.anndata.AnnData, use_label: str = 'louvain', use_cluster: int = None, reverse: bool = False, cluster: int = 0, data_alpha: float = 1.0, arrow_alpha: float = 1.0, branch_alpha: float = 0.2, spot_size: Union[float, int] = 1, show_color_bar: bool = True, show_axis: bool = False, show_plot: bool = True, name: str = None, dpi: int = 150, output: str = None, copy: bool = False) → Optional[anndata._core.anndata.AnnData]¶ Local spatial trajectory inference plot.
- Parameters
adata – Annotated data matrix.
use_label – Use label result of clustering method.
use_cluster – Choose a specific clusters that will display in the plot.
data_alpha – Opacity of the spot.
arrow_alpha – Opacity of the arrow.
branch_alpha – Opacity of the branch edge.
edge_alpha – Opacity of edge in PAGA graph in the tissue.
node_alpha – Opacity of node in PAGA graph in the tissue.
spot_size – Size of the spot.
show_color_bar – Show color bar or not.
show_axis – Show axis 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