netmap.downstream.final_downstream.compute_edge_overlaps_simple

netmap.downstream.final_downstream.compute_edge_overlaps_simple(grn_adata: AnnData, net_list: List[Tuple[str, DataFrame]]) Dict[str, float]

Compute the percentage of overlapping edges between a GRN and multiple reference networks.

Parameters:
  • grn_adata (AnnData) – AnnData object with edges in grn_adata.var, containing ‘source’ and ‘target’ columns.

  • net_list (List[Tuple[str, pd.DataFrame]]) – List of tuples (network_name, network_dataframe), where each dataframe must include ‘source’ and ‘target’ columns.

Returns:

Dictionary mapping each network name (with index suffix) to its overlap percentage. Example: {‘STRING__0’: 0.32, ‘BioGRID__1’: 0.45}

Return type:

Dict[str, float]