Learn R Programming

geNetClassifier (version 1.12.0)

getSubNetwork-methods: Get a sub-network.

Description

Returns the sub-network formed by the given genes.

Usage

getSubNetwork(network, genes, showWarnings=TRUE)

Arguments

network
GenesNetwork or GenesNetwork list containing the whole network.
genes
GenesRanking or character vector. Genes in the new network.
showWarnings
Logical. If true, shows warnings if the given genes are not in the network.

Value

A GenesNetwork or list of networks between the given genes.

See Also

Main package function and classifier training: geNetClassifier This method's class (GenesNetwork) help page.

Examples

Run this code
data(leukemiasClassifier)
clGenesSubNet <- getSubNetwork(leukemiasClassifier@genesNetwork, 
leukemiasClassifier@classificationGenes)
getSubNetwork(leukemiasClassifier@genesNetwork, getTopRanking(leukemiasClassifier@genesRanking, numGenesClass=30))

Run the code above in your browser using DataLab