50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


rBiopaxParser (version 2.10.0)

getXrefAnnotations: This function returns the annotations of the supplied instances.

Description

This function returns the annotations of the supplied IDs in a data.table.

Usage

getXrefAnnotations(biopax, id, splitComplexes = FALSE, followPhysicalEntityParticipants = TRUE, biopaxlevel = 3)

Arguments

biopax
A biopax model
id
vector of strings. IDs of instances to get annotations
splitComplexes
logical. If TRUE complexes are split up into their components and the annotation of the components is added.
followPhysicalEntityParticipants
logical. If TRUE physicalEntityParticipants are resolved to their corresponding physicalEntities and their annotation is added.
biopaxlevel
integer. Set the biopax level here if you supply a data.table directly.

Value

Returns data.table with annotations

Examples

Run this code
# load data
 data(biopaxexample)
# example of annotation for a protein:
getXrefAnnotations(biopax, id="ex_m_100647")
# no annotations for exactly the complex
getXrefAnnotations(biopax, id="ex_m_100650")
# split up the complex and get annotations for all the molecules involved
getXrefAnnotations(biopax, id="ex_m_100650", splitComplexes=TRUE)

Run the code above in your browser using DataLab