voyagerpy.spatial.get_visium_spots#

voyagerpy.spatial.get_visium_spots(adata: AnnData, with_radius: bool = False, res: str | None = None) GeoSeries#

Return a GeoSeries of the spots in the Visium slide. If with_radius is True, will return circular polygons with the radius of the spot diameter, otherwise will return points.

Parameters:
  • adata (AnnData) – Annotated data matrix.

  • with_radius (bool, optional) – Whether to create Polygons with radius radius. If False, the dtype of the returned GeoSeries will be Point, by default False

  • res (Optional[str], optional) – The resolution to use for the coordinate system. If None, this will be determined automatically, by default None

Returns:

Points or Polygons of the spots in the Visium slide.

Return type:

gpd.GeoSeries