networkcommons.eval.get_recovered_offtargets

networkcommons.eval.get_recovered_offtargets(network, offtargets)

Get the number of off-targets recovered by the network.

Parameters:
  • network (nx.Graph) – The network to get the off-targets from.

  • offtargets (list) – A list of off-targets.

  • percent (bool, optional) – If True, return the percentage of off-targets recovered. Defaults to False.

Returns:

The number/percentage of off-targets recovered by the network.

Return type:

int