- CFLARE.plot_lineage_drivers_correlation(lineage_x, lineage_y, color=None, gene_sets=None, gene_sets_colors=None, use_raw=False, cmap='RdYlBu_r', fontsize=12, adjust_text=False, legend_loc='best', figsize=(4, 4), dpi=None, save=None, show=True, **kwargs)¶
Show scatter plot of gene-correlations between two lineages.
Optionally, you can pass a
dictof gene names that will be annotated in the plot.
str) – Name of the lineage on the x-axis.
str) – Name of the lineage on the y-axis.
str]]) – List of colors where each entry corresponds to a gene set from
genes_sets. If None and keys in
gene_setscorrespond to lineage names, use the lineage colors. Otherwise, use default colors.
str) – Colormap to use.
int) – Size of the text when plotting
bool) – Whether to automatically adjust text in order to reduce overlap.
bool) – If False, return
- Return type
The axes object, if
show = False. Nothing, just plots the figure. Optionally saves it based on
This plot is based on the following notebook by Maren Büttner.