addBiopaxInstances: This function adds new instances to an existing biopax model.

Description Usage Arguments Value Author(s) Examples

Description

This function adds new instances (supplied as a compatible data.table) to an existing biopax model via rbind. Usually you want to start out at createBiopax and addPhysicalEntity and work your way up the ontology ladder.

Usage

1
addBiopaxInstances(biopax, newInstancesDF)

Arguments

biopax

A biopax model

newInstancesDF

data.table or data.frame. Must be compatible with internal biopax implementation.

Value

Returns the supplied biopax model with the new instances added.

Author(s)

Frank Kramer

Examples

1
2
3
4
5
6
# load data
 data(biopaxexample)
 biopax_temp = createBiopax(level=2)
 biopax_temp = addBiopaxInstance(biopax_temp, class="protein", id="id1", properties=list(NAME="protein1",SYNONYMS="p1"))
 selectInstances(biopax_temp)
 biopax = addBiopaxInstances(biopax, selectInstances(biopax_temp))


Search within the rBiopaxParser package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.