filterData {GenoGAM} | R Documentation

## A filter function for |codeGenoGAMDataSet

### Description

A function to filter the |codeGenoGAMDataSet by the sum or mean of counts to significantly reduce the amount of models to compute

### Usage

    filterData(ggd, threshold = NULL, windowsize = 201, mode = c("sum",
      "mean"))

### Arguments

`ggd` | A `GenoGAMDataSet` object
`threshold` | A value for the mean or sum of counts, which will be used to filter on basepair level. By default it is taken as median + 3*MAD
`windowsize` | The sliding window size. Should be an odd value.
`mode` | Should the sum or the mean of counts be used?

### Value

A `GenoGAMDataSet` object containing the filtered regions

### Author(s)

Georg Stricker georg.stricker@in.tum.de

### Examples

    ggd <- makeTestGenoGAMDataSet()
    fdata <- filterData(ggd, windowsize = 10)
    fdata

[Package GenoGAM version 1.8.0 Index]