Learn R Programming

rBiopaxParser (version 2.10.0)

addBiopaxInstance: This function adds a new instance to an existing biopax model.

Description

This function adds a new instance to an existing biopax model. "properties" is a named list of vectors, with the vector name as the name of the property and every entry of the vector a property value. Please note: case sensitivity! In Biopax Level 2 all properties are written in all capital letters. This will change in Biopax Level 3.

Usage

addBiopaxInstance(biopax, class, id, properties = list(NAME = c()), verbose = TRUE)

Arguments

biopax
A biopax model
class
string. Class name
id
string. ID of the instance
properties
named list of properties.
verbose
logical. Be verbose about what was added.

Value

Returns the supplied biopax model with the new instance added.

Examples

Run this code
biopax = createBiopax(level=2)
biopax = addBiopaxInstance(biopax, class="protein", id="id1", properties=list(NAME="protein1",SYNONYMS="p1"))
biopax$dt

Run the code above in your browser using DataLab