anndata.abc.CSRDataset#
- class anndata.abc.CSRDataset[source]#
Bases:
ABCOn disk CSR sparse matrix.
Analogous to
h5py.Datasetorzarr.Array, but for sparse matrices.Attributes
- dtype: dtype[source]#
The
numpy.dtypeof thedataattribute of the sparse matrix.
Methods
- abstractmethod __getitem__(index)[source]#
Load a slice or an element from the sparse dataset into memory.
- Parameters:
- index
anndata.typing.Index Index to load.
- index
- Return type:
float|csr_matrix|csc_matrix|csr_array|csc_array- Returns:
The desired data read off disk.