Learn R Programming

rBiopaxParser (version 2.10.0)

pathway2AdjacancyMatrix: This function generates an adjacency matrix from the activations/inhibitions of a pathway in a biopax model.

Description

This function internally first calls pathway2RegulatoryGraph, then converts the regulatory graph to an adjacency matrix. See pathway2RegulatoryGraph for more details.

Usage

pathway2AdjacancyMatrix(biopax, pwid, expandSubpathways = TRUE, splitComplexMolecules = TRUE, useIDasNodenames = FALSE, verbose = TRUE)

Arguments

biopax
A biopax model
pwid
string
expandSubpathways
logical. If TRUE subpathways are expanded into this graph, otherwise only this very pathway is used.
splitComplexMolecules
logical. If TRUE every complex is split up into its components. This leads to splitting a single node with name of the complex into several nodes with names of the components, these components all have identical edges.
useIDasNodenames
logical. If TRUE nodes of the graph are named by their molecule IDs instead of using the NAME property. This can help with badly annotated/formatted databases.
verbose
logical

Value

Returns the adjacency matrix representing the regulatory graph of the supplied pathway.

Examples

Run this code
# load data
 data(biopaxexample)
 pwid1 = "pid_p_100002_wntpathway"
 pwid2 = "pid_p_100146_hespathway"
 pathway2AdjacancyMatrix(biopax, pwid1)

Run the code above in your browser using DataLab