loki.plot.plot_annotation_heatmap

loki.plot.plot_annotation_heatmap(st_ad, roi_polygon, s, linewidth, xlim, ylim)

Plots tissue type annotation heatmap.

Parameters:
  • st_ad – AnnData object containing coordinates in obsm[‘spatial’] and similarity scores in obs[‘bulk_simi’].

  • roi_polygon – A list of polygons, where each polygon is a list of (x, y) coordinate tuples.

  • s – The size of the scatter plot markers representing each spatial transcriptomics spot.

  • linewidth – The thickness of the lines used to draw the polygons.

  • xlim – A tuple (xmin, xmax) defining the x-axis limits for zooming in on a specific region of the image.

  • ylim – A tuple (ymin, ymax) defining the y-axis limits for zooming in on a specific region of the image.

Returns:

Displays the heatmap with polygons overlaid.