mira.pl.plot_enrichments#
- mira.pl.plot_enrichments(enrichment_results, show_genes=True, show_top=10, barcolor='lightgrey', label_genes=[], text_color='black', return_fig=False, plots_per_row=2, height=4, aspect=2.5, max_genes=15, pval_threshold=1e-05, color_by_adj=True, palette='Reds', gene_fontsize=10)#
Make plot of geneset enrichments results.
- Parameters
- show_genesboolean, default = True
Whether to show gene names on enrichment barplot bars
- show_topint > 0, default = 10
Plot this many top terms for each ontology
- barcolorstr or tuple[int] (r,g,b,a) or tuple[int] (r,g,b)
Color of barplot bars
- label_geneslist[str] or np.ndarray[str]
Add an asterisc by the gene name of genes in this list. Useful for finding transcription factors or signaling factors of interest in enrichment results.
- text_colorstr or tuple[int] (r,g,b,a) or tuple[int] (r,g,b)
Color of text on plot
- plots_per_rowint > 0, default = 2
Number of onotology plots per row in figure
- heightfloat > 0, default = 4
Height of each ontology plot
- aspectfloat > 0, default = 2.5
Aspect ratio of ontology plot
- max_genesint > 0, default = 15
Maximum number of genes to plot on each term bar
- pval_thresholdfloat (0, 1), default = 1e-5
Upper bound on color map for adjusted p-value coloring of bar outlines.
- color_by_adjboolean, default = True
Whether to outline term bars with adjusted p-value
- palettestr
Color palette for adjusted p-value
- gene_fontsizefloat > 0, default = 10
Fontsize of gene names on term bars
- Returns
- axmatplotlib.pyplot.axes