bioalpha.h5ad_map.H5ADLoader

class bioalpha.h5ad_map.H5ADLoader(dataset: Dataset | SparseDataset, batch_size: int | None = None, max_nnz_allow: int | None = None, shuffle: bool = False, seed: int = 0)

H5ADLoader

Wrapper of BatchReader and H5ADWriter.

Methods

init_writer(file, key, shape, dtype, **kwargs)

Create batch writer.

transfer(*args[, func])

Read data, call func(loaded) and write to file.

Attributes

reader

writer