bsxplorer.EnrichmentResult.plot_enrich_mpl

EnrichmentResult.plot_enrich_mpl(fig_axes: tuple | None = None, exclude: list | None = None, label: str = '', **mpl_kwargs)[source]

Visualize enrichment results as a scatterplot, where x – genomic region type, y – enrichment value.

Parameters:
  • fig_axes – Tuple of ( matplotlib.pyplot.Figure, matplotlib.axes.Axes). New are created if None

  • exclude – List of names of genomic region types to exclude from the final plot. Set None if no exclusion should be performed.

  • label – Label for the points on the scatterplot (useful, when several groups of points should be bisualized on the same plot).

  • mpl_kwargs – Keyword arguemtnts for plt.scatter function of the matplotlib API.

Return type:

matplotlib.pyplot.Figure