export pubchem.bio pc.bio syle data.table to a CompoundDb database
export.ComboundDb(
pc.bio.object = NULL,
pc.directory = NULL,
path = NULL,
dbFile = NULL,
source = NULL,
source_version = NULL,
url = NULL,
source_date = NULL,
organism = NA_character_,
get.synonyms = FALSE
)'CompDb' from CompoundDb package. see vignette('create-compounddb', package = 'CompoundDb')
input data.table, generated from 'build.pubchem.bio' or 'build.taxon.metabolome' functions
directory from which to load pubchem .Rdata files. alternatively, provide R data.tables for ALL cid.property.object options defined below.
valid file path specifying the directory to which the database will be saved.
valid file name - use .sqlite extension. if NULL, will set to 'pubchem.bio.sqlite'
default = NULL. if NULL, will set to 'pubchem.bio'
default = NULL. if NULL, will set to pubchem.bio version.
default = NULL. if NULL, will set to "https://cran.r-project.org/web/packages/pubchem.bio/index.html"
default = NULL. if NULL, will set to current date via format(Sys.Date(), format = "%Y-%m-%d")
character. default = NA_character_. if this is a species specific database, set to species name or NCBI taxonomy ID number.
logical. default = FALSE. When TRUE, will load the 'cid.synonyms.Rdata' file from the pc.directory, which must be defined. database product will have all synonyms included. If FALSE, synonyms will be an empty list.
Corey Broeckling
takes output from 'build.pubchem.bio' or 'build.taxon.metabolome' functions, reformatting, and converting to a CompoundDb object and database. see see vignette('create-compounddb', package = 'CompoundDb') for more details on the CompoundDb package