separation | R Documentation |
Calculates the separation of two sets of nodes on a network. The metric is calculated as in Menche et al. (2015).
separation(graph, set_a, set_b)
graph |
The input graph object. It should be either an igraph object or an edge list matrix/data frame. |
set_a |
The first gene set |
set_b |
The second gene set |
The separation and distance measurement of the specified two modules.
library(DTSEA) # Load the data data("random_graph", package = "DTSEA") # Compute the separation metric separation <- separation( graph = random_graph, set_a = c("4", "6", "8", "13"), set_b = c("8", "9", "10", "15", "18") ) cat(separation, "\n")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.