elementCountCheck: Element count checks

View source: R/golden_rules.R

elementCountCheckR Documentation

Element count checks

Description

Element count checks based on Rule 6 of the Seven Golden Rules by Kind et al 2007.

Usage

elementCountCheck(element_frequencies)

Arguments

element_frequencies

a tibble containing element frequencies as returned by elementFrequencies()

Value

A tibble containing results of the element count checks. The column headers specify the check criteria. TRUE is returned where relevant checks are passed and FALSE where not. NA is returned where the check is not relevant.

References

Kind, T. and Fiehn, O., 2007. Seven Golden Rules for heuristic filtering of molecular formulas obtained by accurate mass spectrometry. BMC bioinformatics, 8(1), pp.1-20.

Examples

elementFrequencies(c('H2O','C12H22O11')) %>% 
  elementCountCheck()

jasenfinch/mzAnnotation documentation built on Feb. 25, 2023, 1:27 a.m.