Multi-Dendrix Logo

This Page

multi_dendrix.evaluate.network.sum_dist

multi_dendrix.evaluate.network.sum_dist(network, pairs)[source]

Given a PPI and a list of gene pairs, returns the sum of the shortest paths between each pair.

Parameters:
  • network (NetworkX Graph) – input PPI network.
  • pairs (list of tuples) – pairs of genes to test.
Returns:

distance (int) - the sum of the distances between each gene pair.

See also: avg_pair_dist_ratio(), dist().