Learn R Programming

rBiopaxParser (version 2.10.0)

splitComplex: This functions splits up a complex into its components.

Description

This function looks up the supplied Complex ID and returns the names of all its components.

Usage

splitComplex(biopax, complexid, recursive = TRUE, returnIDonly = FALSE, biopaxlevel = 3)

Arguments

biopax
A biopax model
complexid
string ID of an complex
recursive
logical
returnIDonly
logical. If TRUE only IDs of the components are returned. This saves tiem for looking up names for every single ID.
biopaxlevel
integer. Set the biopax level here if you supply a data.table directly.

Value

Returns a character vector with the names of all subcomponents.

Examples

Run this code
# load data
 data(biopaxexample)
 selectInstances(biopax, id="ex_m_100650")
 listInstances(biopax, id="ex_m_100650")
 listComplexComponents(biopax, id="ex_m_100650")
 splitComplex(biopax, complexid="ex_m_100650")

Run the code above in your browser using DataLab