Filter-classes: Filters supported by CompDb

Description Usage Arguments Author(s) See Also Examples

Description

A variety of different filters can be applied to the CompDb object to retrieve only subsets of the data. These filters extend the AnnotationFilter::AnnotationFilter class and support the filtering concepts introduced by Bioconductor's AnnotationFilter package.

The supported filters are:

Usage

1
2
3
4
5
6
7

Arguments

value

The value for the filter. For details see AnnotationFilter::AnnotationFilter().

condition

The condition for the filter. For details see AnnotationFilter::AnnotationFilter().

Author(s)

Johannes Rainer

See Also

supportedFilters() for the method to list all supported filters for a CompDb object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
library(CompoundDb)

## Create a filter for the compound id
cf <- CompoundIdFilter("comp_a")
cf

## Create a filter using a formula expression
AnnotationFilter(~ compound_id == "comp_b")

## Combine filters
AnnotationFilterList(CompoundIdFilter("a"), CompoundNameFilter("b"))

## Using a formula expression
AnnotationFilter(~ compound_id == "a" | compound_name != "b")

michaelwitting/CompoundDb documentation built on April 29, 2020, 8:42 p.m.