# load data
data(biopaxexample)
# select the subset of the internal data.table that belongs to class "protein"
selectInstances(biopax, class="protein")
# select the subset of the internal data.table that belongs to class "interaction"
selectInstances(biopax, class="interaction")
# select the subset of the internal data.table that belongs to class "interaction" or any of its sub classes, like control, catalysis etc.
selectInstances(biopax, class="interaction", includeSubClasses=TRUE)
# select the subset of the internal data.table that belongs to class "pathway" AND is a "NAME" property
selectInstances(biopax, class="pathway", property="NAME")
Run the code above in your browser using DataLab