Skip to content

Instantly share code, notes, and snippets.

@jorainer
Created September 21, 2022 07:41
Show Gist options
  • Save jorainer/8a7339c45ca0dbfed6686fa36ca80fab to your computer and use it in GitHub Desktop.
Save jorainer/8a7339c45ca0dbfed6686fa36ca80fab to your computer and use it in GitHub Desktop.
Query and list MassBank releases from Bioconductor's AnnotationHub
library(AnnotationHub)
ah <- AnnotationHub()
## List available releases
query(ah, "MassBank")
## Download one specific release
mb <- ah[["AH107049"]]
## Access using Spectra
sps <- Spectra(mb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment