SpaHDmap.data.select_svgs

SpaHDmap.data.select_svgs(section, n_top_genes=3000, method='moran')[source]

Select the top SVGs based on Moran’s I or SPARK-X or BSP for a given section or list of sections. Update each section’s AnnData object to only include the selected SVGs.

Parameters:
  • section (Union[STData, List[STData]]) – STData object or list of STData objects.

  • n_top_genes (int) – Number of top SVGs to select.

  • method (str) – Method to use for selecting SVGs. Either ‘moran’, ‘sparkx’ or ‘bsp’.