getInstanceProperty {rBiopaxParser} | R Documentation |
This function returns all properties of the specified type for an instance. By default this function returns the NAME property of an instance.
getInstanceProperty(biopax, id, property = "NAME", includeAllNames = TRUE, biopaxlevel = 3)
biopax |
A biopax model |
id |
string |
property |
string. |
includeAllNames |
logical. Biopax Level 3 brought 2 new name properties: displayName and standardName. Per default this return all names of an instance. Disable if you only want the NAME property. |
biopaxlevel |
integer. Set the biopax level here if you supply a data.table directly. |
Returns a character vector with all properties of the selected type for this instance. Returns NULL if no property data is found.
fkramer
# load data data(biopaxexample) getInstanceProperty(biopax, id="ex_m_100650", property="NAME") getInstanceProperty(biopax, id="ex_m_100650", property="ORGANISM") getInstanceProperty(biopax, id="ex_m_100650", property="COMPONENTS")