anndata.acc.GraphAcc#
- class anndata.acc.GraphAcc(dim, k, *, ref_class)[source]#
-
Reference accessor for arrays from graph containers (
A.obsp/A.varp).Examples
>>> from anndata.acc import A, GraphAcc >>> assert isinstance(A.obsp["distances"], GraphAcc) >>> A.obsp["distances"][:, "cell-1"] A.obsp['distances'][:, 'cell-1']
Attributes
Methods
- dims(idx, /)[source]#
Get along which dimensions the referenced array is.
- Return type:
Collection[Literal['obs','var']]