parse_adduct | R Documentation |
This function parses adducts
parse_adduct(
adduct_string,
regex = "\\[(\\d*)M(?![a-z])(\\d*)([+-][\\w\\d].*)?.*\\](\\d*)([+-])?"
)
adduct_string |
Adduct to be parsed |
regex |
Regex used for parsing |
Parsed elements from adduct
parse_adduct("[M+H]+")
parse_adduct("[2M1-C6H12O6 (hexose)+NaCl+H]2+")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.