celldancer.cdplt.plot_kinetic_para¶
- celldancer.cdplt.plot_kinetic_para(ax, kinetic_para, cellDancer_df, color_map=None, title=None, legend=False)¶
Plot the UMAP calculated by the kinetic parameter(s).
- Parameters
ax (ax) – ax of plt.subplots()
kinetic_para (str) – The parameter used to generate the embedding space based on UMAP, could be selected from {‘alpha’, ‘beta’, ‘gamma’, ‘alpha_beta_gamma’}.
cellDancer_df (pandas.DataFrame) – Dataframe of velocity estimation results. Columns=[‘cellIndex’, ‘gene_name’, ‘splice’, ‘unsplice’, ‘splice_predict’, ‘unsplice_predict’, ‘alpha’, ‘beta’, ‘gamma’, ‘loss’, ‘cellID’, ‘clusters’, ‘embedding1’, ‘embedding2’]
color_map (dict (optional, default: None)) – The color map dictionary of each cell type.
legend (bool (optional, default: False)) – True if the color map of cell legend is to be plotted.