combineNodes {rBiopaxParser}R Documentation

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.

Author(s)

Frank Kramer

Examples

 # load data and retrieve wnt pathway
 data(biopaxexample)

[Package rBiopaxParser version 2.22.0 Index]