getReferencedIDs {rBiopaxParser}R Documentation

This function returns a vector of ids of all instances referenced by the specified instance.

Description

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

Usage

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

Arguments

biopax

A biopax model OR a compatible data.table

id

string. ID of the instance

recursive

logical

onlyFollowProperties

character vector

Value

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

Author(s)

Frank Kramer

Examples

 # load data
 data(biopaxexample)
 listComplexComponents(biopax, id="ex_m_100650")
 getReferencedIDs(biopax, id="ex_m_100650", recursive=FALSE)
 getReferencedIDs(biopax, id="ex_m_100650", recursive=TRUE)

[Package rBiopaxParser version 2.20.0 Index]