Learn R Programming

PAnnBuilder (version 1.36.0)

createAnnObjs: Creates the AnnObj instances

Description

These functions creates the AnnObj instances for the SQLite-based annotation data packages.

Usage

createSeeds(type)
createAnnObjs(type, prefix, datacache, dbconn)

Arguments

type
character string, giving the name of concerned database. Possible values of type are : "sp", "trembl", "ipi", "refseq", "geneint", "intact", "mppi", "3DID", "DOMINE", "BaCelLo", "DBSubLoc", "SCOP", "HomoloGene", "InParanoid", "PeptideAtlas", "SysPTM", "SysBodyFluid", "GOA", "GO", "KEGGNAME", "PFAMNAME", "INTERPRONAME", "TAXNAME", "dName", "cross", "pSeq"
prefix
the prefix of the name of the data package to be built. (e.g. "hsaSP"). The name of builded package is prefix+".db".
datacache
a R environment, giving the name of "*.sqlite" database file, and a object which extends DBIConnection to the database.
dbconn
a connection object to the package.

Details

Given the abbreviation of databases, createSeeds returns a list which describes the set of AnnObj objects. createAnnObjs creates the AnnObj instances based on the values of createSeeds. dbschema(x, file="", show.indices=FALSE): Print the schema definition of the SQLite DB. Also works if x is a DBIConnection object. The file argument must be a connection, or a character string naming the file to print to (see the file argument of the cat function for the details). The CREATE INDEX statements are not shown by default. Use show.indices=TRUE to get them.