Learn R Programming

rBiopaxParser (version 2.10.0)

addPropertiesToBiopaxInstance: This function adds new properties to an existing biopax instance.

Description

This function adds new properties to an existing biopax instance.

Usage

addPropertiesToBiopaxInstance(biopax, id, properties)

Arguments

biopax
A biopax model
id
string. ID of the instance
properties
named list of properties.

Value

Returns the supplied biopax model with new properties added to this instance.

Examples

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

Run the code above in your browser using DataLab