scatrans.pl.enrich_vennplot#
- scatrans.pl.enrich_vennplot(enrich_df, cluster_col=None, pval_cutoff=0.05, min_count=1, max_terms=200, title=None, figsize=(8, 6), dpi=300, fontsize=11, colors=None, save_path=None, show=True, use_style=False)[source]#
Simple multi-group Venn diagram for significant enriched terms across clusters.
Useful companion to enrich_upsetplot when you have 2-3 (max 4) groups and want a classic overlapping-circles view of shared vs unique terms.
Works on the DataFrame returned by compare_enrichment / concat_compare_results (must have a Cluster column and p.adjust / Term).
For >4 groups it gracefully degrades to a warning + the first 4.
Pure matplotlib (no extra deps).