valpas.visualization.edge_venn_diagram_plot.plot_network_venn_diagrams#

valpas.visualization.edge_venn_diagram_plot.plot_network_venn_diagrams(dataframes, labels, title='Network Overlap Analysis', protein1_col='protein_1', protein2_col='protein_2', plot_edges=True, plot_nodes=True, figsize=(16, 8), colors=None, alpha=0.6, show_percentages=True, save_path=None, dpi=300, include_summary=True, subset_font_size=12, title_font_size=14)#

Create Venn diagrams for edge and node overlaps between three networks

Parameters:
  • dataframes (List[DataFrame]) – List of 3 DataFrames containing network edges

  • labels (List[str]) – List of 3 labels for the networks

  • title (str) – Overall title for the figure

  • protein1_col (str) – Column name for first protein

  • protein2_col (str) – Column name for second protein

  • plot_edges (bool) – Whether to plot edge overlaps

  • plot_nodes (bool) – Whether to plot node overlaps

  • figsize (Tuple[int, int]) – Figure size (width, height)

  • colors (List[str]) – List of colors for the three sets

  • alpha (float) – Transparency for the circles

  • show_percentages (bool) – Whether to show percentages in addition to counts

  • save_path (str | None) – Path to save the figure

  • dpi (int) – Resolution for saved figure

  • include_summary (bool) – Whether to include summary statistics

  • subset_font_size (int) – Font size for subset labels

  • title_font_size (int) – Font size for subplot titles

Returns:

Tuple of (figure, analysis_results)

Return type:

Tuple[Figure, Dict]