Bases: RefAcc[R, str, MuData]
Reference accessor for modality maps (obsmap / varmap).
Attributes
-
dim: Literal['obs', 'var']
Axis this accessor refers to, e.g. A.obsmap[k].dim == "var".
-
ref_class: type[AdRef[Hashable, MuData | AnnData]]
Methods
-
dims(idx, /)
Get which dimension this array refers to.
- Return type:
Axes
-
get(mdata, idx, /)
Get the referenced array from the MuData object.
- Return type:
InMemoryArray
-
idx_repr(idx, /)
Get a string representation of the index.
- Return type:
str
-
isin(mdata, idx=None)
Check if the referenced array is in the MuData object.
- Return type:
bool