View source: R/accessory_functions.R
findFragment | R Documentation |
findFragment
is used to find spectra that contain a specific fragment
ion. Its sister function is findNL
, which finds specific
neutral losses. Both functions work analogous to getSpectrum
.
findFragment(featlist, mz, tolerance = 1e-05)
featlist |
a list that contains only objects of class
|
mz |
The mass-to-charge ratio of the fragment ion of interest. |
tolerance |
The m/z tolerance for the fragment ion search.
Default is |
If the respective fragment is only found in one spectrum, the output
is an object of class MS2spectrum
; if it is found in
more than one spectrum, the output is a list of
MS2spectrum
objects.
load(file = system.file("extdata", "annotatedSpeclist.RData", package = "CluMSIDdata")) putativeAQs <- findFragment(annotatedSpeclist, 159.068)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.