vignettes/public_database_construction.Rmd
public_database_construction.Rmd
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()
function
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()
function
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")