Search for compounds in specified databases using mass-to-charge ratio, ion type, and mass tolerance.
Examples
if (FALSE) { # \dontrun{
client <- mw_rest_client()
# Search for compounds with specific m/z
matches <- search_by_mass(client,
db = "REFMET",
mz = 180.063,
ion_type = "M+H",
tolerance = 0.01
)
# Search in lipids database
lipid_matches <- search_by_mass(client,
db = "LIPIDS",
mz = 760.585,
ion_type = "M+H",
tolerance = 0.05
)
} # }
