Partitioning#
Metacell partitioning with CAMP1–4. The high-level entry point is
partition(), which samples a coreset and dispatches to an
assignment kernel.
Writes
adata.obs[key_added]— metacell labels (orkey_added_{gamma}for multi-gamma)adata.obs[f"{key_added}_is_seed"]— coreset seed flagsadata.uns[key_added]— run metadata
Executable examples are on campmc.partition().
Partition cells into metacells with CAMP1-4. |
Assignment kernels live in the private campmc._assign package and are called
from campmc.partition(). Prefer the high-level API unless you are extending
the package.