bioalpha.h5ad_map.H5ADMap.chunk_X
- H5ADMap.chunk_X(select: int | Sequence[int] | ndarray = 1000, replace: bool = True)
Return a chunk of the data matrix
Xwith random or specified indices.- Parameters:
select –
Depending on the type:
intA random chunk with select rows will be returned.
- sequence (e.g. a list, tuple or numpy array) of
int A chunk with these indices will be returned.
replace – If select is an integer then True means random sampling of indices with replacement, False without replacement.