c2v.pp.recalc_composition

c2v.pp.recalc_composition#

c2v.pp.recalc_composition(adata, clones, fill_obs, obs_name=None)#

Create a new annotated data matrix at the clone level with updated cell type proportions.

Parameters:
adata AnnData

Annotated data matrix at the cell level.

clones AnnData

Annotated data matrix at the clone level.

fill_obs str

Column in adata.obs containing updated cell type / cluster labels.

obs_name str | None, optional

Column in adata.obs containing clonal information, if None, try to get from clones.uns[‘obs_name’], by default None.

Return type:

AnnData

Returns:

AnnData New annotated data matrix at the clone level with updated cell type proportions.