powered by
subnet generates a subnetwork from a network,which consists of specified nodes
subnet(net, nodes, impl = "auto", neighbors = F, delete = T)
The original net, which should be a graph object
Gene symbol, which should match the nodes in original net
Character scalar, to choose between two implementation of the subgraph calculation. Details are implemented in subraph function of igraph package
Logical scalar, whether to get the neighbors of input nodes
Logical scalar, whether to remove the nodes which do not have any neighbors in the output network
A new igraph graph object
subnet(net,nodes,impl="auto",neighbors=F,delete=T)
# NOT RUN { NOR2ADE.net <-subnet(net=databases.net,nodes = NOR2ADE.DEGs) # }
Run the code above in your browser using DataLab