omicverse.bulk.geneset_plot_multi

omicverse.bulk.geneset_plot_multi(enr_dict, colors_dict, num=5, fontsize=10, fig_title='', fig_xlabel='Fractions of genes', figsize=(2, 4), cmap='YlGnBu', text_knock=5, text_maxsize=20, ax=None)[source]

Plot multiple enrichment result tables in a unified dot-clustermap panel.

Parameters:
  • enr_dict (dict[str,pandas.DataFrame]) – Mapping from group/condition name to enrichment result DataFrame.

  • colors_dict (dict[str,str]) – Color mapping for each group in enr_dict.

  • num (int, optional) – Number of top terms taken from each group.

  • fontsize (int, optional) – Base font size for labels and legends.

  • fig_title (str, optional) – Figure title.

  • fig_xlabel (str, optional) – X-axis label.

  • figsize (tuple, optional) – Figure size.

  • cmap (str, optional) – Colormap used for enrichment significance values.

  • text_knock (int, optional) – Trim length applied to long term names.

  • text_maxsize (int, optional) – Maximum wrapped text size for term labels.

  • ax (matplotlib.axes.Axes|None, optional) – Existing axis; if None a new figure/axis is created.

Returns:

Axis containing the multi-group enrichment visualization.

Return type:

matplotlib.axes.Axes