cospar.pl.fate_coupling

cospar.pl.fate_coupling(adata, source='transition_map', color_bar=True, rename_fates=None, color_map=<matplotlib.colors.LinearSegmentedColormap object>, figure_index='', color_bar_label='Clonal coupling score', title=None, vmax=None, semi_triangular=False, **kwargs)

Plot fate coupling determined by the transition map.

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

Parameters
adata : AnnData object

Assume to contain transition maps at adata.uns.

source : str

Choices: {‘X_clone’, ‘transition_map’, ‘intraclone_transition_map’,…}. If set to be ‘clone’, use only the clonal information. If set to be any of the precomputed transition map, use the transition map to compute the fate coupling. The actual available map depends on adata itself, which can be accessed at adata.uns[‘available_map’]

color_bar : bool, optional (default: True)

plot the color bar if True.

rename_fates : list, optional (default: None)

Provide new names in substitution of names in selected_fates. For this to be effective, the new name list needs to have names in exact correspondence to those in the old list.

color_map

The color map (a matplotlib.pyplot.cm object) to visualize the result.

figure_index : str, optional (default: ‘’)

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

Returns

ax – The axis object of this plot.