Multi-Dendrix Logo

This Page

multi_dendrix.evaluate.network.num_interactions_in_gene_set

multi_dendrix.evaluate.network.num_interactions_in_gene_set(network, gset)[source]

Counts the number of interactions among genes in the given set.

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

count (int) - number of interactions among genes in gset.

See also: eval_gene_sets_by_interactions(), count_interactions().

Note: Used by eval_gene_sets_by_interactions() when performing the direct interactions test on individual gene sets.