anndata.acc.RefAcc#
- class anndata.acc.RefAcc(*, ref_class)[source]#
Bases:
ABCAbstract base class for reference accessors.
See here for all existing subclasses.
Attributes
Methods
- abstractmethod dims(idx, /)[source]#
Get along which dimensions the referenced array is.
- Return type:
Collection[Literal['obs','var']]
- abstractmethod get(adata, idx, /)[source]#
Get the referenced array from the AnnData object.
- Return type:
ndarray|MaskedArray|csr_matrix|csc_matrix|csr_array|csc_array|Array|ndarray|spmatrix