stereo.algorithm.spa_track.SpaTrack.calc_alpha_by_moransI

SpaTrack.calc_alpha_by_moransI(spatial_key=None)[source]

Estimate alpah1 and alpah2 for spt.get_ot_matrix by using Moran’s I.

Parameters:

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

return: The estimated alpha1 and alpha2