sgolayCpp: Smooth chromatogram with savitzky-golay filter.

Description Usage Arguments Value Author(s) Examples

View source: R/RcppExports.R

Description

Smooth chromatogram with savitzky-golay filter.

Usage

1
sgolayCpp(chrom, kernelLen, polyOrd)

Arguments

chrom

(matrix) chromatogram containing time and intensity vectors.

kernelLen

(integer) length of filter. Must be an odd number.

polyOrd

(integer) TRUE: remove background from peak signal using estimated noise levels.

Value

(matrix).

Author(s)

Shubham Gupta, shubh.gupta@mail.utoronto.ca ORCID: 0000-0003-3500-8152 License: (c) Author (2020) + MIT Date: 2019-12-31

Examples

1
2
3
data("XIC_QFNNTDIVLLEDFQK_3_DIAlignR", package = "DIAlignR")
XICs <- XIC_QFNNTDIVLLEDFQK_3_DIAlignR[["hroest_K120809_Strep0%PlasmaBiolRepl2_R04_SW_filt"]][["4618"]]
xic <- sgolayCpp(as.matrix(XICs[[1]]), kernelLen = 11L, polyOrd = 4L)

Roestlab/DIAlign documentation built on Feb. 25, 2021, 5:18 p.m.