anndata.acc.MapAcc#
- class anndata.acc.MapAcc[R: RefAcc, M: Mapping[str, object] | Mapping[str | None, object] = Mapping[str, object]](*, ref_acc_cls, scope=None)[source]#
Bases:
ABCAccessor for mapping containers.
Attributes
- scope: ScopeAcc | None = None[source]#
Accessor for the element whose
.ADcast the mapping is in, seeanndata.acc.RefAcc.scope.
Methods
- abstractmethod __getitem__(k, /)[source]#
Get a reference accessor for mapped array.
- Parameters:
- k
str The key of the mapped array.
- k
- Return type:
R
- container(data, /)[source]#
Get the AnnData object this accessor indexes into, see
anndata.acc.RefAcc.container().- Return type: