construct_massbank_database: Construct public MS2 database from massbank with msp format.

View source: R/construct_massbank_database.R

construct_massbank_databaseR Documentation

Construct public MS2 database from massbank with msp format.

Description

Construct MS2 spectra database according to mzXML data and compound information table (csv format).

Usage

construct_massbank_database(
  file,
  only.remain.ms2 = TRUE,
  path = ".",
  version = "0.0.1",
  source = "MassBank",
  link = "https://massbank.eu/MassBank/",
  creater = "Xiaotao Shen",
  email = "shenxt1990@163.com",
  rt = FALSE,
  threads = 5
)

Arguments

file

The file name of MassBank or MoNA database (mgf format).

only.remain.ms2

Only remain the metabolites with MS2 spectra?

path

Work directory.

version

The version of you database. Default is 0.0.1.

source

The source of your database.

link

Website link of the source.

creater

Creater name. For example, Xiaotao Shen.

email

email address.

rt

Do the metabolites have RT information or not?. If not, set it as FALSE.

threads

The number of threads

Value

A databaseClass object.

Author(s)

Xiaotao Shen shenxt1990@outlook.com

See Also

The example and demo data of this function can be found https://tidymass.github.io/metid/articles/metid.html


tidymass/metid documentation built on Sept. 4, 2023, 2:01 a.m.