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

Description Usage Arguments Value Author(s) Examples

View source: R/visualizeBiopax.R

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

1
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

1
2
 # load data and retrieve wnt pathway
 data(biopaxexample)

rBiopaxParser documentation built on Nov. 8, 2020, 8:21 p.m.