isolatePeaks: isolatePeaks

Description Usage Arguments Value Examples

View source: R/isolatePeaks.R

Description

This function is designed to handle the isolation of TIC peak regions to throw into AutoTuner.

Usage

1
isolatePeaks(Autotuner, returned_peaks, signals)

Arguments

Autotuner

An Autotuner object. Ideally generated right after signal processing peak identification is complete.

returned_peaks

A numerical value representing the number of peaks that are to be returned to the user for downstream parameter optimization.

signals

A list of list containing data from sliding window analysis.

Value

Returns an Autotuner object with selected TIC regions.

Examples

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

crmclean/AutoTuner documentation built on Jan. 29, 2021, 4:48 p.m.