View source: R/createCompDbPackage.R
compound_tbl_lipidblast | R Documentation |
compound_tbl_lipidblast()
extracts basic compound annotations from a
LipidBlast file in (json format) downloaded from
http://mona.fiehnlab.ucdavis.edu/downloads . Note that no mass spectra data
is extracted from the json file.
compound_tbl_lipidblast(
file,
collapse = character(),
n = -1L,
verbose = FALSE,
BPPARAM = bpparam()
)
file |
|
collapse |
optional |
n |
|
verbose |
|
BPPARAM |
|
A tibble::tibble with general compound information (one row per compound):
compound_id
: the ID of the compound.
name
: the compound's name.
inchi
: the InChI of the compound.
inchikey
: the InChI key.
smiles
: the SMILES representation of the compound.
formula
: the chemical formula.
exactmass
: the compound's mass.
compound_class
: the class of the compound.
ionization_mode
: the ionization mode.
precursor_mz
: the precursor m/z value.
precursor_type
: the precursor type.
retention_time
: the retention time.
ccs
: the collision cross-section.
spectrum
: the spectrum data (i.e. the mass peaks, as a concatenated
character string).
synonyms
: the compound's synonyms (aliases). This type of this column is
by default a list
to support multiple aliases per compound, unless
argument collapse
is provided, in which case multiple synonyms are pasted
into a single element separated by the value of collapse
.
Johannes Rainer, Jan Stanstrup and Prateek Arora
Other compound table creation functions:
compound_tbl_sdf()
## Read compound information from a subset of HMDB
fl <- system.file("json/MoNa-LipidBlast_sub.json", package = "CompoundDb")
cmps <- compound_tbl_lipidblast(fl, n = 50000, verbose = TRUE)
cmps
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.