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

Description Usage Arguments Value Author(s) Examples

View source: R/modifyBiopax.R

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

1
2
3
4
5
6
7
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.

Author(s)

Frank Kramer

Examples

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

frankkramer-lab/rBiopaxParser documentation built on July 19, 2020, 9:49 a.m.