This is a large wrapper function that calls upon all individual database parsers, cleans the resulting database and saves it in a SQLite database.
buildBaseDB(
outfolder,
dbname,
custom_csv_path = NULL,
smitype = "Canonical",
silent = TRUE,
cl = 0,
test = FALSE,
doBT = FALSE,
btOpts = "phaseII:1",
btLoc,
skipClean = F
)
In which folder are you building your databases? Temp folders etc. will be put here.
Which database do you want to build? Options: chebi,maconda,kegg,bloodexposome,dimedb,expoexplorer, foodb, drugbank, lipidmaps, massbank, metabolights, metacyc, phenolexplorer, respect, wikidata, wikipathways, t3db, vmh, hmdb, smpdb, lmdb, ymdb, ecmdb, bmdb, rmdb, stoff, anpdb, mcdb, mvoc, pamdb
PARAM_DESCRIPTION, Default: NULL
Which SMILES format do you want?, Default: 'Canonical'
Suppress warnings?, Default: TRUE
parallel::makeCluster object for multithreading, Default: 0
Run in test mode? Makes an incomplete ver of db, but is faster.
Do a biotransformation step using Biotransformer?
Biotransfomer -q options. Defaults to phase II transformation only.
Location of Biotransformer JAR file. Needs to be executable!
Skip cleaning step? Cleaning step uses SMILES to acquire formula, charge, and transforms SMILES into 'smitype' dialect.
Nothing, writes SQLite database to 'outfolder'.
# NOT RUN {
# }
# NOT RUN {
buildBaseDB(outfolder = tempdir(), "lmdb", test=TRUE)
# }
Run the code above in your browser using DataLab