isOfClass: Checks if instances in the biopax data.table are of the given class
Description
This function checks if instances in the supplied biopax
data.table are of a given class. If considerInheritance is
set to TRUE it also checks if instances are of a given
class or any of its inherited classes.
Usage
isOfClass(df, class, considerInheritance = FALSE, biopaxlevel = 2)
Arguments
df
A data.frame with biopax instances
class
A string containing the class name to check
for
considerInheritance
Logical value indicating
wether to consider inheritance or not
biopaxlevel
Numeric. Specifies the Biopax Level to
use.
Value
Returns TRUE for every row in the data.frame which is of
the supplied class