anndata.acc.AdRef#
- class anndata.acc.AdRef(acc, idx)[source]#
Bases:
A reference to a 1D or 2D array along one or two dimensions of an AnnData object.
Examples
Use
Ain the same way you would anAnnDataobject if you wanted to access a 1D or 2D array along the whole dimension. You can then introspect the reference:>>> from anndata.acc import A >>> A.obs.index.dims {'obs'} >>> A.obs["x"].idx 'x' >>> type(A.var["y"].acc) <class 'anndata.acc.MetaAcc'>
See
anndata.accandAdAccfor more examples.Attributes