filterPeaks {chromswitch} | R Documentation

## filterPeaks

### Description

Given a set of peak calls for different marks and samples, filter peaks according to values in numeric

### Usage

    filterPeaks(peaks, columns, thresholds)

### Arguments

`peaks` | List of GRanges objects storing peak calls for each sample, where element names correspond to sample IDs
`columns` | Character vector of column names containing stats by which to filter peaks
`thresholds` | Vector of numeric values giving the lower thresholds to use for each of the columns specified, in the same order as `columns`

### Value

A list of GRanges objects storing peak calls for each sample, with peaks filtered according to the columns and thresholds specified.

### Examples

    filterPeaks(peaks = H3K4me3,
        columns = c("signalValue", "pValue"),
        thresholds = c(4, 10))

[Package chromswitch version 1.14.0 Index]