new.mave.filter: New MaveDB Filter Object

Description Usage Arguments Details Value Examples

View source: R/maveFilter.R

Description

Constructor that creates a MaveDB filter object

Usage

1

Arguments

data

A data.frame containing a MaveDB data set containing at least the two columns "hgvs" and "score".

verbose

Logical. If TRUE, prints status messages while loading data.

Details

The resulting object offers a number of filter functions. All these functions return vectors of type logical, which can be combined with & and | to form more complex filters before being applied to the data. (See example below). The following functions are available.

Value

a new MaveDB filter object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
mave <- new.rapimave()
data <- mave$getScores("SCS000001A.2")
mfilter <- new.mave.filter(data)
filter <- with(mfilter,
   position(min=5,multi="all") & residues(to="Ala",multi="all") & numerical("score",min=0.1)
)
filtered.data <- data[filter,]

## End(Not run)

jweile/rapimave documentation built on Aug. 4, 2021, 12:12 a.m.