dNameBuilder_DB(prefix, pkgPath, version, author)
dNameBuilder_DB
employes functions
writeGOName_DB
, writeKEGGName_DB
writePFAMName_DB
, writeINTERPROName_DB
and
writeTAXName_DB
to parse and write data.
Data files in the database will be automatically downloaded to the tmp
directory, so enough space is needed for the data files. After
downloading, files are parsed by perl, so perl must be installed. It may
take a long time to parse database and build R package. Alternatively, we have
produced diverse R packages by PAnnBuilder, and you can download appropriate
package via http://www.biosino.org/PAnnBuilder.
# Set path, version and author for the package.
pkgPath <- tempdir()
version <- "1.0.0"
author <- list()
author[["authors"]] <- "Hong Li"
author[["maintainer"]] <- "Hong Li <sysptm@gmail.com>"
## It may take a long time to parse database and build R package.
# Build ID-Name mapping packages "dName.db" for "GO", "KEGG", "PFAM", "INTERPRO",
# and "TAX".
if(interactive()){
dNameBuilder_DB(prefix = "dName", pkgPath, version, author)
}
Run the code above in your browser using DataLab