anndata.acc.MetaAcc#
- class anndata.acc.MetaAcc(dim, *, ref_class)[source]#
-
Reference accessor for arrays from metadata containers (
A.obs/A.var).Examples
You can refer to columns or the index in the way you would access them in a
DataFrame:>>> from anndata.acc import A, MetaAcc >>> assert isinstance(A.obs, MetaAcc) >>> A.obs["type"] A.obs['type'] >>> A.var.index A.var.index
Attributes
Methods
- dims(k, /)[source]#
Get along which dimensions the referenced array is.
- Return type:
Collection[Literal['obs','var']]