anndata.abc.CSCDataset (original) (raw)

anndata 0.11.4 documentation - Home

anndata.abc.CSCDataset#

class anndata.abc.CSCDataset[source]#

On disk CSC sparse matrix.

Analogous to h5py.Dataset or zarr.core.Array, but for sparse matrices.

Attributes

format The format of the sparse matrix.
shape Shape of the matrix.
dtype The numpy.dtype of the data attribute of the sparse matrix.
backend Which file type is used on-disk.

Methods

__getitem__(index) Load a slice or an element from the sparse dataset into memory.
to_memory() Load the sparse dataset into memory.