getReferencingIDs: This function returns a vector of ids of all instances that...

Description Usage Arguments Value Author(s) Examples

View source: R/selectBiopax.R

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

1
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.

Author(s)

Frank Kramer

Examples

1
2
3
4
5
 # 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)

Example output

Loading required package: data.table
           id name
1 ex_x_100637     
2  ex_x_25631     
3 ex_x_100647     
4 ex_x_100222     
5 ex_x_100649     
6 ex_x_100648     
[1] "ex_x_100650_5569"
[1] "ex_x_100650_5569"          "ex_i_100046_2_activator_1"
[3] "ex_i_100044"               "ex_i_100046_3_activator_1"
[5] "ex_i_100046_1_activator_1" "ex_i_100044_inhibitor_1"  
[7] "pid_p_100002_wntpathway"  

rBiopaxParser documentation built on Nov. 8, 2020, 8:21 p.m.