Learn R Programming

rBiopaxParser (version 2.10.0)

getReferencingIDs: This function returns a vector of ids of all instances that reference the supplied id.

Description

This function takes an id and a biopax model as input. The id of every instance that references the supplied id is returned. If recursive == TRUE this function recurses through all referencing IDs of the referencing instances and so on. "onlyFollowProperties" limits the recursivness to only certain properties, for example follow only complexes or physicalEntities.

Usage

getReferencingIDs(biopax, id, recursive = TRUE, onlyFollowProperties = c())

Arguments

biopax
A biopax model
id
string. ID of the instance
recursive
logical
onlyFollowProperties
character vector

Value

Returns a character vector of IDs referencing the supplied id in the supplied biopax model.

Examples

Run this code
# load data
 data(biopaxexample)
 listComplexComponents(biopax, id="ex_m_100650")
 getReferencingIDs(biopax, id="ex_m_100650", recursive=FALSE)
 getReferencingIDs(biopax, id="ex_m_100650", recursive=TRUE)

Run the code above in your browser using DataLab