tirank.Visualization.plot_score_umap

tirank.Visualization.plot_score_umap(savePath, infer_mode)[source]

Visualizes TiRank prediction scores and labels on UMAP and spatial plots.

This function loads an AnnData object and corresponding prediction scores. It then generates and saves visualization plots based on the inference mode. - For “SC” (single-cell) mode, it saves UMAP plots colored by score and label. - For “ST” (spatial) mode, it saves UMAP and spatial plots colored by

score and label.

Parameters:
  • savePath (str) – The base directory containing ‘2_preprocessing’ and ‘3_Analysis’ subdirectories.

  • infer_mode (str) – The type of data being plotted, either “SC” or “ST”.

Returns:

None

Raises:

ValueError – If infer_mode is not “SC” or “ST”.