ThresholdingAlgo: ThresholdingAlgo

Description Usage Arguments Value Examples

View source: R/ThresholdingAlgo.R

Description

This function performs a sliding window analysis on the chromatograms in order to identify peaks within the data. I would recommend to keep influence low in order to use adjacent peak lengths as a measure of peak width.

Usage

1
ThresholdingAlgo(y, lag, threshold, influence)

Arguments

y

A numerical vector of measured chromatographic intensity values

lag

A scalar value of number of observations to calculate intensity prior to peak selection.

threshold

A number of standard deviations above chromatogram. Used to detect significantly observed peaks.

influence

A scalar values between 0-1 that describes how much the value of a peak (measured index value above threshold) should contribute to the sliding window analysis of downstream peaks.

Value

A list of calculated sliding window values.

Examples

1
2
3
4
5
6
7
lag <- 25
threshold<- 3.1
influence <- 0.1
Autotuner <- readRDS(system.file("extdata/Autotuner.rds",
package="Autotuner"))
signals <- lapply(getAutoIntensity(Autotuner), ThresholdingAlgo,
lag, threshold, influence)

Autotuner documentation built on Nov. 8, 2020, 5:59 p.m.