spacipy.Gem.to_anndata

Gem.to_anndata(bin_size=None, cell_loc=None, batch=None)

Convert the binning or cell labeling object to anndata

Parameters:
  • bin_size (int) – group into bins before convert with width and height of bin_size

  • cell_loc (pandas.DataFrame) – dataframe with x and y coordinates for each cell label

  • batch (str) – column name for Batch information if contain