FindPeaks: Extract peaks from chromatogram files

FindPeaksR Documentation

Extract peaks from chromatogram files

Description

This function extracts the maximum intensity of a list of masses in a given RI window.

Usage

FindPeaks(my.files, refLib, columns = NULL, showProgressBar = FALSE)

Arguments

my.files

A character vector naming RI files to be searched.

refLib

A numeric matrix with three columns or a list of three column matrices. The second column contains the masses and the first and third column contains the RI limits.

showProgressBar

Logical. Should the progress bar be displayed?

columns

Either NULL, a character vector, or an integer vector. In most cases, leave it as NULL. This parameter is used to configure the column names or positions of RI text files. See the documentation on the text2bin function for further details.

Details

The reference library parameter refLib can be either a single three-column matrix or a list of such matrices. If it is a list, the length must match the length of my.files. In this case, every component will be used to iteratively search in the corresponding file.

The RI files format can be either "text" or "binary". The type is detected dynamically.

Value

A tsMSdata object.

Note

This is an internal function not intended to be invoked directly.

Author(s)

Alvaro Cuadros-Inostroza, Matthew Hannah, Henning Redestig

See Also

medianRILib, sampleRI, peakFind, tsMSdata

Examples

# load example CDF files
require(TargetSearchData)
# load pre-calculated example data and objects
data(TSExample)

# get RI file path
RI.path <- tsd_data_path()
# update RI file path
RIpath(sampleDescription) <- RI.path

my.files <- RIfiles(sampleDescription)
# make a three column matrix: lower RI, mass, upper RI
refLib   <- refLib(refLibrary)
head(refLib)

# extract the peaks
peaks <- FindPeaks(my.files, refLib)
    

acinostroza/TargetSearch documentation built on Nov. 13, 2024, 12:28 a.m.