pickPeak: Identify peaks above a given threshold

Description Usage Arguments Value Note Author(s) See Also

View source: R/package.R

Description

Given a vector of scores and a threshold, this function finds all peaks that exceed the threshold.

Usage

1
pickPeak(score, threshold, offset = 0, sub = FALSE)

Arguments

score

Numeric vector.

threshold

All values in score below this value are ignored.

offset

Offset to add to the determined peak locations.

sub

Logical. If this is FALSE (the default) for each region that exceeds the threshold only the global maximum is returned. Otherwise local maxima are returned as well.

Value

If sub = FALSE a numeric vector giving the location of all peaks. Otherwise a list with components

peaks

The same peak locations that are returned for sub = FALSE.

subPeaks

A list with one component for each entry in ‘peaks’ giving the location of local maxima.

Note

This function is used by callBindingSites for peak-calling.

Author(s)

Peter Humburg

See Also

callBindingSites, startScore, getCutoff


ChIPseqR documentation built on Nov. 8, 2020, 6:49 p.m.