Checks if instances in the biopax data.table are of the given class

Share:

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

1
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

Author(s)

Frank Kramer

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.