bioalpha.h5ad_map.SparseDatasetMap

class bioalpha.h5ad_map.SparseDatasetMap(group: Group)

Analogous to h5py.Dataset, but for sparse matrices. Support converting bettween csr, csc and dense 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_backed()

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.

to_memory()

Attributes

data

dtype

file

format_str

h5py_group

indices

indptr

name

shape

value