Calculate the exact mass for a lipid given its abbreviation and ion type.
Value
A tibble containing the parsed data, with calculated exact mass:
- lipid_abbrev
The lipid abbreviation (e.g., "PC(34:1)")
- ion_type
The ion type (e.g., "M+H+")
- lipid_name
The full lipid name (e.g., "PC 34:1")
- ion_type_parsed
The parsed ion type (e.g., "M+H+")
- mz
The m/z value (numeric, e.g., 760.585077)
- formula
The molecular formula (e.g., "C42H83NO8P")
Examples
if (FALSE) { # \dontrun{
client <- mw_rest_client()
# Calculate exact mass for phosphatidylcholine
mass_info <- calculate_exact_mass(client, "PC(34:1)", "M+H")
print(mass_info$exactmass)
# Calculate for different ion types
mass_na <- calculate_exact_mass(client, "PC(34:1)", "M+Na")
} # }
