cospar.pl.iterative_differentiation

cospar.pl.iterative_differentiation(adata, selected_fates=None, source='transition_map', figure_index='')

Plot the progenitors of given fates across time points

The results should be pre-computed from cospar.tl.iterative_differentiation().

Parameters
adata : AnnData object

Assume to contain transition maps at adata.uns.

selected_fates : list

List of cluster ids consistent with adata.obs[‘state_info’]. It allows a nested structure. If so, we merge clusters within each sub-list into a mega-fate cluster.

source : str

The transition map to be used for plotting: {‘transition_map’, ‘intraclone_transition_map’,…}. The actual available map depends on adata itself, which can be accessed at adata.uns[‘available_map’]

figure_index : str, optional (default: ‘’)

String index for annotate filename for saved figures. Used to distinuigh plots from different conditions.