Description Usage Arguments Details Value Author(s) Examples
View source: R/subcellBuilder_DB.R
Given the URL to subcellular location database, this function creates a SQLite-based annotation data package.
1 2 | subcellBuilder_DB(src=c("BaCelLo", "DBSubLoc"),
prefix, pkgPath, version, author)
|
src |
a character string that can be "BaCelLo" or "DBSubLoc" to indicate which protein subcellular location database will be used. |
prefix |
the prefix of the name of the data package to be built. (e.g. "hsaSP"). The name of builded package is prefix+".db". |
pkgPath |
a character string for the full path of an existing directory where the built backage will be stored. |
version |
a character string for the version number. |
author |
a list with named elements "authors" containing a character vector of author names and "maintainer" containing the complete character string for the maintainer field, for example, "Jane Doe <jdoe@doe.com>". |
Build annotation data packages for protein subcellular location. Supported databases are: "BaCelLo": http://gpcr.biocomp.unibo.it/bacello ; "DBSubLoc": http://www.bioinfo.tsinghua.edu.cn/dbsubloc.html ;
subcellBuilder_DB
employes functions
writeBACELLOData_DB
and writeDBSUBLOCData_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 .
This function does not return any value.
Hong Li
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # 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@com.cn>"
## It may take a long time to parse database and build R package.
if(interactive()){
# Build annotation data packages "sc.bacello.db" for BaCelLo database.
subcellBuilder_DB(src="BaCelLo",
prefix = "sc.bacello", pkgPath, version, author)
# Build annotation data packages "sc.dbsubloc.db" for DBSubLoc database.
subcellBuilder_DB(src="DBSubLoc",
prefix = "sc.dbsubloc", pkgPath, version, author)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.