separation {DTSEA}R Documentation

A measure of network separation

Description

Calculates the separation of two sets of nodes on a network. The metric is calculated as in Menche et al. (2015).

Usage

separation(graph, set_a, set_b)

Arguments

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

Value

The separation and distance measurement of the specified two modules.

Examples

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")


[Package DTSEA version 0.0.3 Index]