knitr::opts_chunk$set( collapse = TRUE, comment = "#>", out.width = "100%" )
MassBank
, MoNA
and some other public databases provide msp
format database of metabolites. So you can use the functions in metid
to transform them to metid
format database.
Download the MassBank
msp database from here: https://massbank.eu/MassBank/. And then put the msp
data into one folder.
Then set this folder as you work directory in R.
construct_massbank_database()
functionlibrary(metid)
massbank_database <- construct_mona_database( file = "MassBank_NIST.msp", path = ".", version = "0.0.1", source = "MoNA", link = "https://mona.fiehnlab.ucdavis.edu/", creater = "Xiaotao Shen", email = "shenxt1990@163.com", rt = FALSE, threads = 5 )
The arguments of construct_mona_database()
can be found here construct_mona_database()
.
massbank_database is a databaseClass
object, you can print it to see its information.
save(massbank_database, file = "massbank_database")
Download the MoNA
msp database from here: https://mona.fiehnlab.ucdavis.edu/downloads. And then put the msp
data into one folder.
Note: Only download the database you need, do NOT use the all MS2 spectra databse which is pretty large size.
Then set this folder as you work directory in R.
construct_mona_database()
functionlibrary(metid)
mona_database <- construct_mona_database( file = "MoNA-export-LC-MS-MS_Spectra.msp", path = ".", version = "0.0.1", source = "MoNA", link = "https://mona.fiehnlab.ucdavis.edu/", creater = "Xiaotao Shen", email = "shenxt1990@163.com", rt = FALSE, threads = 5 )
The arguments of construct_mona_database()
can be found here construct_mona_database()
.
massbank_database is a databaseClass
object, you can print it to see its information.
save(mona_database, file = "mona_database")
sessionInfo()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.