# Wolfram Function Repository

Instant-use add-on functions for the Wolfram Language

Function Repository Resource:

Calculate the network-based inference (NBI) connection score between two vertices in a bipartite graph

Contributed by:
Shayan K. Azmoodeh

ResourceFunction["NetworkBasedInferenceScore"][ gives the network based inference (NBI) score between the drug vertex |

ResourceFunction["NetworkBasedInferenceScore"] is based on the implementation described by Ding et al. for predicting drug-target interactions in bioinformatics.

ResourceFunction["NetworkBasedInferenceScore"] calculates the score based on how many connections each vertex has and the relation of their connections to each other. It effectively predicts the strength of an edge between two vertices that are not connected by an edge.

The input drug and target vertices do not need to have an edge between them.

If a drug or target vertex given is not in the given graph, ResourceFunction["NetworkBasedInferenceScore"] returns 0.

Create a simple network of pharmaceutical drugs and their viral targets:

In[1]:= |

Out[1]= |

Calculate the NBI score between a drug and target vertex:

In[2]:= |

Out[2]= |

A bipartite graph:

In[3]:= |

Out[3]= |

The NBI score can be calculated for pairs of vertices that have an edge between them as well:

In[4]:= |

Out[4]= |

Network edges can be labeled with the NBI scores:

In[5]:= |

In[6]:= |

Out[6]= |

- 1.0.0 – 14 June 2021

This work is licensed under a Creative Commons Attribution 4.0 International License