Skip to content

Instantly share code, notes, and snippets.

@jorainer
Created September 21, 2022 08:11
Show Gist options
  • Save jorainer/9dbdf4b19084d602c0957c2737195181 to your computer and use it in GitHub Desktop.
Save jorainer/9dbdf4b19084d602c0957c2737195181 to your computer and use it in GitHub Desktop.
Match experimental fragment spectra against MassBank
library(MetaboAnnotation)
## Get access to MassBank 2022.06
ref <- MassBankSource("2022.06")
## Compare experimental spectra (qry Spectra object)
## against that reference
res <- matchSpectra(qry, ref, CompareSpectraParam(ppm = 20))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment