Description Usage Arguments Value Examples
View source: R/annotate_features.R
Identifies all possible theoretical features within an user defined ppm window around the measured mz value of each measured feature. The result includes only those theoretical features that are potential candidates for at least one measured feature and orphan isotopes are removed if no hit is identified for the corresponding monoisotope.
1 | find_hits(info.features, dat, ppm)
|
info.features |
data.frame with information about theoretical possible
features (e.g. as generated by the function
|
dat |
data.frame with information about measured features with columns id (= unique identifier), mz (= measured mz value), intensity (= measured intensity). |
ppm |
Numeric. Resolution of mass spectrometer. |
matrix with measured features in rows and theoretical possible features in columns (1 = measured feature within ppm distance to theoretical feature, 0 = otherwise).
1 2 3 4 5 6 7 | data("se.example")
data("info.features")
dat = prepare_data_for_annotation(se = se.example)
hits.m = find_hits(info.features = info.features,
dat = dat,
ppm = 20)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.