addFlankToRight: Add signal to the right of XIC

View source: R/merge_chromatogram.R

addFlankToRightR Documentation

Add signal to the right of XIC

Description

This function copies flanking chromatogram from XIC and paste it to the right of newXIC.

Usage

addFlankToRight(flankSeq, XIC, newXIC)

Arguments

flankSeq

(logical) must be TRUE at the tail of the vector.

XIC

(data-frame) first column is time, second column is intensity.

newXIC

(data-frame) first column is time, second column is intensity.

Value

(dataframe) has two columns:

time

(numeric)

intensity

(numeric)

Author(s)

Shubham Gupta, shubh.gupta@mail.utoronto.ca

ORCID: 0000-0003-3500-8152

License: (c) Author (2020) + GPL-3 Date: 2020-07-16

See Also

childXIC, addFlankToLeft

Examples

time <- seq(from = 3003.4, to = 3048, by = 3.4)
y <- c(0.2050595, 0.8850070, 2.2068768, 3.7212677, 5.1652605, 5.8288915, 5.5446804,
       4.5671360, 3.3213154, 1.9485889, 0.9520709, 0.3294218, 0.2009581, 0.1420923)
chrom <- data.frame(time, y)
chrom2 <- data.frame(time = c(3013.4, 3016, 3020), intensity = c(1.2, 3.4, 5.6))
flankSeq <- as.logical(c(1,1,0,0,0,0,0,0,0,0,0,0,1,1))
## Not run: 
addFlankToRight(flankSeq, chrom, chrom2)

## End(Not run)

shubham1637/DIAlignR documentation built on March 29, 2023, 8:45 p.m.