spatialtis.wkt_shapes#

spatialtis.wkt_shapes(data, shape_key, export_key='cell_shape', write_config=True)[source]#

Transform normal coordination in AnnData.obs to wkt-format.

>>> import spatialtis as st
>>> st.wkt_points(data, 'shape', export_key="shape_wkt")
Parameters
dataAnnData

The AnnData to work on.

shape_keystr

The key that store shape information.

export_keystr

The key to export.

write_configbool, default: True

Whether to update shape key to global configuration.