anndata.AnnData.chunk_X# AnnData.chunk_X(select=1000, *, replace=True)[source]# Return a chunk of the data matrix X with random or specified indices. Parameters: select int | Sequence[int] | ndarrayDepending on the type: intA random chunk with select rows will be returned. sequence (e.g. a list, tuple or numpy array) of intA chunk with these indices will be returned. replace boolIf select is an integer then True means random sampling of indices with replacement, False without replacement.