mmc.batch_iterator()
- mmochi.utils.batch_iterator(adata, batch_key, sort=True)
Generates a series of masks, for each different batch in batch_key and its corresponding batch name
- Parameters:
- Return type:
- Returns:
batch_masks – Boolean masks for each of the batches in batch_key
batches – The names of the batches in the batch_key column of adata.obs