Learn R Programming

NetworkSim (version 0.1.0)

subnet: Subnetwork from a network

Description

subnet generates a subnetwork from a network,which consists of specified nodes

Usage

subnet(net, nodes, impl = "auto", neighbors = F, delete = T)

Arguments

net

The original net, which should be a graph object

nodes

Gene symbol, which should match the nodes in original net

impl

Character scalar, to choose between two implementation of the subgraph calculation. Details are implemented in subraph function of igraph package

neighbors

Logical scalar, whether to get the neighbors of input nodes

delete

Logical scalar, whether to remove the nodes which do not have any neighbors in the output network

Value

A new igraph graph object

Details

subnet(net,nodes,impl="auto",neighbors=F,delete=T)

Examples

Run this code
# NOT RUN {
 

NOR2ADE.net <-subnet(net=databases.net,nodes = NOR2ADE.DEGs)

# }

Run the code above in your browser using DataLab