Description Usage Arguments Value Author(s) References See Also Examples
View source: R/TopologicSims.r
Given a network and two nodes, this function will calculate the Jaccard Index between the two nodes
1 | JaccardSim(node1, node2, graph)
|
node1 |
Name of one node in the PPI network. |
node2 |
Name of another node in the PPI network. |
graph |
A PPI network |
The Jaccard Index between the two nodes
Yue Deng <anfdeng@163.com>
[1] P. Jaccard, "Etude comparative de la distribution florale dans une portion des Alpes et des Jura", Bull. Soc. Vaud. Sci. Nat, vol. 37, p. 541, 1901.
1 2 3 4 | edges <- data.frame(node1=c("1132", "1133", "1134", "1134", "1145", "1147", "1147", "1147"),
node2=c("1134", "1134", "1145", "1147", "1147", "1148", "1149", "1133"))
graph<-igraph::graph.data.frame(edges,directed=FALSE)
JaccardSim("1134","1147",graph)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.