bioalpha.h5ad_map.SparseDatasetMap
- class bioalpha.h5ad_map.SparseDatasetMap(group: Group)
Analogous to
h5py.Dataset
, but for sparse matrices. Support converting bettweencsr
,csc
anddense
formats.Methods
append
(sparse_matrix)as_format
(spformat, file[, key, force])Convert backed sparse matrix to other format without load full matrix to memory.
from_dataset
(dataset, spformat, file, key[, ...])Convert h5py.Dataset to SparseDatasetMap without load full matrix to memory.
to_csc
(file[, key, force])Alias of .as_format("csc",...)
to_csr
(file[, key, force])Alias of .as_format("csr",...)
to_dense
(file, key[, force])Convert backed sparse matrix to dense without load full matrix to memory.
Attributes