Description Usage Arguments Value Author(s) Examples
This function returns the annotations of the supplied IDs in a data.table.
1 2 3 4 5 6 7 | getXrefAnnotations(
biopax,
id,
splitComplexes = FALSE,
followPhysicalEntityParticipants = TRUE,
biopaxlevel = 3
)
|
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. |
Returns data.table with annotations
fkramer
1 2 3 4 5 6 7 8 | # 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.