Description Usage Arguments Value See Also Examples
View source: R/oxy-db_search.R
Goes through database of choice (base database) and retrieves hits that have the molecular formula of interest.
1 | searchFormula(formula, charge, outfolder, base.dbname)
|
formula |
Molecular formula (should be checked by enviPat::check_chemform first!) |
charge |
Charge of formula |
outfolder |
Which folder are your databases stored in? |
base.dbname |
Base database name (without .db suffix) |
Data table with compounds with this molecular formula and the other available information
1 2 3 4 5 | ## Not run: myFolder = tempdir()
## Not run: buildBaseDB(outfolder = myFolder, "lmdb", test = TRUE)
## Not run: searchFormula(formula = c("C7H11N3O2"), charge = 0,
outfolder = myFolder, base.dbname = c("lmdb"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.