Learn R Programming

GCalignR (version 1.0.7)

remove_singletons: Remove singletons

Description

Identifies and removes singletons (i.e. peaks that are unique for one sample) from the aligned dataset.

Usage

remove_singletons(data)

Value

a list of data frames for each individual.

Arguments

data

An object of class "GCalign". See align_chromatograms for details. Alternatively, a list of data frames. Whereby each data frame contains the peak list for an individual sample.

Author

Meinolf Ottensmann ([email protected]) & Martin Stoffel ([email protected])

Examples

Run this code
data("peak_data")
## subset for faster processing
data <- lapply(peak_data[1:5], function(x) x[20:35,])
x <- align_chromatograms(data, rt_col_name = "time")
out <- remove_singletons(data = x)

Run the code above in your browser using DataLab