spatialdata.models.TableModel#
- class spatialdata.models.TableModel#
Attributes table#
Methods table#
|
Parse the |
|
Validate the data. |
Attributes#
- TableModel.ATTRS_KEY = 'spatialdata_attrs'#
- TableModel.INSTANCE_KEY = 'instance_key'#
- TableModel.REGION_KEY = 'region'#
- TableModel.REGION_KEY_KEY = 'region_key'#
Methods#
- classmethod TableModel.parse(adata, region=None, region_key=None, instance_key=None)#
Parse the
anndata.AnnData
to be compatible with the model.- Parameters:
adata (
AnnData
) – The AnnData object.region (
Union
[list
[str
],str
,None
] (default:None
)) – Region(s) to be used.region_key (
Optional
[str
] (default:None
)) – Key inadata.obs
that specifies the region.instance_key (
Optional
[str
] (default:None
)) – Key inadata.obs
that specifies the instance.
- Return type:
- Returns: