Learn R Programming

BioNet (version 1.32.0)

largestScoreComp: Component with largest score

Description

The function extracts the component of the network with the largest score. All nodes have to exceed the given level for the score.

Usage

largestScoreComp(network, score, level=0)

Arguments

network
Network in graphNEL or igraph format.
score
Vector of scores for the network.
level
Cut-off level for the score for the component.

Value

Subgraph of the network with a score larger than the given level.

Examples

Run this code
library(DLBCL)
data(interactome)
data(dataLym)
network <- rmSelfLoops(interactome)
score <- dataLym$score001
names(score) <- dataLym$label
lComp <- largestScoreComp(network=network, score=score, level=1)
## Not run: plotModule(lComp)

Run the code above in your browser using DataLab