subsetNetwork: Subset a polished network

View source: R/subsetNetwork.R

subsetNetworkR Documentation

Subset a polished network

Description

Subset the output of polishNetwork by a list of nodes name

Usage

subsetNetwork(graph, genes)

Arguments

graph

A graphNEL object. The output of polishNetwork.

genes

A list of nodes names

Value

An object of graph.

Examples

library(graph)
set.seed(123)
g1 <- randomEGraph(LETTERS[seq.int(15)], edges=100)
g1 <- subsetNetwork(g1, LETTERS[seq.int(5)])
plot(g1)

jianhong/GeneNetworkBuilder documentation built on Oct. 26, 2023, 3:45 a.m.