Description Usage Arguments Value See Also
Identify mass differences with the most observations and report closest-
matching known adducts. This also reports mass differences which do not have
a close match to a known adduct, unlike adductMatch
1 2 | topAdducts(hist, add = mass2adduct::adducts, n = 20, use.bw = TRUE,
threshold = NULL)
|
hist |
histogram of a massdiff object |
add |
data.frame of adducts (default: "adducts" dataset of mass2adduct) |
n |
numeric; number of top hits to report (default 20) |
use.bw |
logical; adduct is reported as match only if it falls in the same histogram bin (default: TRUE) |
threshold |
numeric; maximum distance between adduct mass and mass difference peak to report adduct as a match. use.bw must be FALSE (default: NULL) |
data.frame of mass bins, counts, closest-matching adduct if known
adductMatch
to find the closest-matching mass
differences for a list of known adducts (the converse of the
current function)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.