Learn R Programming

rBiopaxParser (version 2.10.0)

combineNodes: This function gracefully combines nodes of a regulatory graph.

Description

This gracefully combines nodes from a regulatory graph. This is basically a wrapper for graph::combineNodes(nodes, graph, newName, collapseFunction=max). If there are duplicated edges for the nodes, the maximum edgeweight will be used for the new connection.

Usage

combineNodes(nodes, graph, newName)

Arguments

nodes
vector of node names specifiying which nodes to combine.
graph
graphNEL
newName
string. Name of the newly created node that will combine the specified nodes.

Value

Returns a graph with specified nodes removed.

Examples

Run this code
# load data and retrieve wnt pathway
 data(biopaxexample)

Run the code above in your browser using DataLab