Description Usage Arguments Value Examples
View source: R/extract_merge.R
mergeMS2spectra
is used to merge MS2 spectra that come from the same
precursor. It does so either by grouping spectra of the same precursor
m/z that fall into a defined retention time window
(rt_tolerance
) or by grouping spectra to peaks from an externally
supplied peak table. Please see the vignette for more details.
1 2 | mergeMS2spectra(ms2list, mz_tolerance = 1e-05, rt_tolerance = 30,
peaktable = NULL, exclude_unmatched = FALSE)
|
ms2list |
A |
mz_tolerance |
The m/z tolerance to be used for merging, default
is |
rt_tolerance |
The retention time tolerance used for merging features.
If used without a peak table, |
peaktable |
An external peak table, e.g. from XCMS, that serves as a
template for grouping spectra. The peaktable must be a three-column
|
exclude_unmatched |
If an external peak table is used: Should spectra that do not match to any peak/feature in the peak table be exclude from the resulting list? |
A merged list of MS2spectrum
objects.
1 2 3 4 5 6 | my_spectra <- extractMS2spectra(MSfile = system.file("extdata",
"PoolA_R_SE.mzXML",
package = "CluMSIDdata"),
min_peaks = 4, RTlims = c(0,5))
my_merged_spectra <- mergeMS2spectra(my_spectra, rt_tolerance = 20)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.