spatialtis.cell_morphology

class spatialtis.cell_morphology(data, area_key=None, eccentricity_key=None, **kwargs)[source]

Cell morphology variation between different groups

This function only works for data with cell shape information. The area is calculated using shoelace formula The eccentricity is assume that the cell is close to ellipse, the semi-minor and semi-major axis is get from the bbox side.

Parameters
  • data (anndata._core.anndata.AnnData) – AnnData object to perform analysis

  • area_key (str) – The key to store cell area, Default: ‘area’

  • eccentricity_key (str) – The key to store cell eccentricity, Default: ‘eccentricity’

  • **kwargs – Pass to spatialtis.abc.AnalysisBase