stereo.algorithm.spa_track.SpaTrack.auto_estimate_param

SpaTrack.auto_estimate_param(spatial_key=None, n_hvg=2000)[source]

Automatically estimate the alpha1 and alpha2 for spt.get_ot_matrix based on highly variable genes.

Parameters:
  • spatial_key (Optional[str]) – The key to get position information of cells, by default, the data.spatial_key will be used.

  • n_hvg (int) – the number of highly variable genes to be calculated, defaults to 2000

return: The estimated alpha1 and alpha2