View source: R/merge_chromatogram.R
mergeXIC | R Documentation |
Both extracted-ion chromatograms must have same number of rows. Missing values are not allowed. Intensities are weighted-averaged.
mergeXIC(XIC.ref, XIC.eXp, wRef, mergeStrategy)
XIC.ref |
(data-frame) extracted ion chromatogram from reference run. Must not contain missing values. |
XIC.eXp |
(data-frame) extracted ion chromatogram from experiment run. Must not contain missing values. |
wRef |
(numeric) Weight of the reference XIC. Must be between 0 and 1. |
mergeStrategy |
(string) must be either ref, avg, refStart or refEnd. |
(dataframe) has two columns:
time |
(numeric) |
intensity |
(numeric) |
There are three startegies for calculating time to keep sampling rate equal to parents:
- Use reference time.
- Average time (Non-gap region will have parent's sampling rate).
- Start/end with the average then fixed sampling rate.
Shubham Gupta, shubh.gupta@mail.utoronto.ca
ORCID: 0000-0003-3500-8152
License: (c) Author (2020) + GPL-3 Date: 2020-05-23
childXIC, alignedXIC
data(XIC_QFNNTDIVLLEDFQK_3_DIAlignR, package="DIAlignR")
XICs.ref <- XIC_QFNNTDIVLLEDFQK_3_DIAlignR[["hroest_K120809_Strep0%PlasmaBiolRepl2_R04_SW_filt"]][["4618"]]
XICs.eXp <- XIC_QFNNTDIVLLEDFQK_3_DIAlignR[["hroest_K120809_Strep10%PlasmaBiolRepl2_R04_SW_filt"]][["14299_QFNNTDIVLLEDFQK/3"]]
## Not run:
plot(mergeXIC(XICs.ref[[1]], XICs.eXp[[1]], wRef = 0.5, mergeStrategy = "ref"), type = "l")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.