getSubNetwork-methods {geNetClassifier} | R Documentation

## 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

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

[Package geNetClassifier version 1.22.0 Index]