Partitioning

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 (or key_added_{gamma} for multi-gamma)

  • adata.obs[f"{key_added}_is_seed"] — coreset seed flags

  • adata.uns[key_added] — run metadata

Executable examples are on campmc.partition().

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.