spatialtis.cell_morphology#

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 assumed that the cell is close to ellipse, the semi-minor and semi-major axis is get from the bbox side.

Parameters
dataAnnData

The AnnData to work with.

area_keystr

The obs key to store cell area value.

eccentricity_keystr

The obs key to store cell eccentricity.

**kwargs

Config for the analysis, for details check spatialtis.abc.AnalysisBase.