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

Description Usage Arguments Value Author(s) Examples

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

Examples

1
2
 # load data
 data(biopaxexample)

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