campmc.mt.metacell_sizes#
- campmc.mt.metacell_sizes(adata, *, partition_key='camp')[source]#
Return per-metacell cell counts from
adata.obs.- Parameters:
- Return type:
- Returns:
DataFrame indexed by metacell id with a
sizecolumn.
Examples
import campmc as cp import scanpy as sc adata = sc.datasets.pbmc68k_reduced() cp.partition(adata, method="camp3", gamma=50, random_state=0) cp.mt.metacell_sizes(adata).head()
size camp seed0-50-__all__ 65 seed1-50-__all__ 34 seed10-50-__all__ 3 seed11-50-__all__ 158 seed12-50-__all__ 42