This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(AnnotationHub) | |
ah <- AnnotationHub() | |
## List available releases | |
query(ah, "MassBank") | |
## Download one specific release | |
mb <- ah[["AH107049"]] | |
## Access using Spectra |