spatialtis.transform_shapes¶
- spatialtis.transform_shapes(data, shape_key, export_key='cell_shape')[source]¶
Transform normal coordination in AnnData.obs to wkt-format
>>> import spatialtis as st >>> st.transform_points(data, 'shape', export_key="shape_wkt")
- Parameters
data (anndata._core.anndata.AnnData) – The AnnData object
shape_key (str) – The key that store key information
export_key (str) – The key to export, will automatically update the global config