vignettes/read_convert_functions.Rmd
read_convert_functions.Rmd
“Read functions” is series functions that could be used to read downloaded online databases. And “convert functions” is series functions that could be used to convert them to other formats.
BIGG modelis a knowledge base of genome-scale metabolic network reconstructions.
Read and convert the BIGG model data
download_bigg_universal_metabolite(path = ".", sleep = 1)
data <-
read_bigg_universal_metabolite(path = ".")
bigg_database <-
convert_bigg_universal2metid(data = data, path = ".")
Chemical Entities of Biological Interest (ChEBI) is a freely available dictionary of molecular entities focused on ‘small’ chemical compounds.
Read and convert ChEBI compound database
download_chebi_compound(path = ".")
data <-
read_chebi_compound(path = ".")
chebi_database <-
convert_chebi2metid(data = data, path = ".")
FooDB is the world’s largest and most comprehensive resource on food constituents, chemistry and biology.
Read and convert the FooDB compound database
download_foodb_compound(compound_id = "all", path = ".")
data <-
read_foodb_compound(path = ".")
foodb_dataabse <-
convert_foodb2metid(data = data, path = ".")
The GNPS GNPS is a web-based mass spectrometry ecosystem that aims to be an open-access knowledge base for community-wide organization and sharing of raw, processed, or annotated fragmentation mass spectrometry data (MS/MS). GNPS aids in identification and discovery throughout the entire life cycle of data; from initial data acquisition/analysis to post publication.
Read and convert one GNPS compound database
download_gnps_spectral_library(gnps_library = "HMDB", path = ".")
data <-
read_msp_data_gnps(file = "ms2.msp")
gnps_database <-
convert_gnps2metid(data = data, path = ".")
KEGG is a database resource for understanding high-level functions and utilities of the biological system, such as the cell, the organism and the ecosystem, from molecular-level information, especially large-scale molecular datasets generated by genome sequencing and other high-throughput experimental technologies.
Read and convert KEGG compound database
download_kegg_compound(path = ".")
data <-
read_kegg_compound(path = ".")
kegg_database <-
convert_kegg2metid(data = data, path = ".")
Read and convert KEGG pathway database
download_kegg_pathway(path = ".", organism = "hsa")
data <-
read_kegg_pathway(path = ".")
kegg_pathway_database <-
convert_kegg2metpath(data = data, path = ".")
LIPID MAPS Lipidomics Gateway was created in 2003 via an NIH “Glue Grant” to provide access to lipid nomenclature, databases, tools, protocols, standards, tutorials, meetings, publications, and other resources and serving the international lipid research community.
Read and convert lipidmaps database
download_lipidmaps_lipid(path = ".")
data <-
read_sdf_data_lipidmaps(file = "data.sdf", path = ".")
lipidmaps_database <-
convert_lipidmaps2metid(data = data, path = ".")
MassBank is a community effort and you are invited to contribute. Please refer to our contributor documentation and get in touch via github or email.
Read and convert MassBnak compound database.
download_massbank_compound(source = "nist")
data <- read_msp_data_massbank(file = "data.msp")
massbank_database <-
convert_massbank2metid_nist(data = data, path = ".")
SMPDB is an interactive, visual database containing more than 30000 small molecule pathways found in humans only.
Read and convert SMPDB pathway database.
download_smpdb_pathway(path = ".")
data <-
read_smpdb_pathway(path = ".", only_primarity_pathway = TRUE)
smpdb_pathway_database <-
convert_smpdb2metpath(data = data, path = ".")
sessionInfo()
#> R version 4.2.1 (2022-06-23)
#> Platform: x86_64-apple-darwin17.0 (64-bit)
#> Running under: macOS Big Sur ... 10.16
#>
#> Matrix products: default
#> BLAS: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRblas.0.dylib
#> LAPACK: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib
#>
#> locale:
#> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
#>
#> attached base packages:
#> [1] stats graphics grDevices utils datasets methods base
#>
#> loaded via a namespace (and not attached):
#> [1] rprojroot_2.0.3 digest_0.6.29 R6_2.5.1 jsonlite_1.8.0
#> [5] magrittr_2.0.3 evaluate_0.15 stringi_1.7.6 rlang_1.0.3
#> [9] cachem_1.0.6 cli_3.3.0 rstudioapi_0.13 fs_1.5.2
#> [13] jquerylib_0.1.4 bslib_0.3.1 ragg_1.2.2 rmarkdown_2.14
#> [17] pkgdown_2.0.5 textshaping_0.3.6 desc_1.4.1 tools_4.2.1
#> [21] stringr_1.4.0 purrr_0.3.4 yaml_2.3.5 xfun_0.31
#> [25] fastmap_1.1.0 compiler_4.2.1 systemfonts_1.0.4 memoise_2.0.1
#> [29] htmltools_0.5.2 knitr_1.39 sass_0.4.1