getAnnMap | R Documentation |
This function retrieves a map object from an annotation data package. It is intended to serve as a common interface for obtaining map objects from both SQLite-based and environment-based annotation data packages.
getAnnMap(map, chip, load = TRUE, type = c("db", "env"))
map |
a string specifying the name of the map to retrieve. For
example, |
chip |
a string describing the chip or genome |
load |
a logical value. When |
type |
a character vector of one or more annotation data
package types. The currently supported types are |
getAnnMap
uses the search path (see search
) to find an
appropriate annotation data package; when called with
chip="hgu95av2"
, the function will use the first hgu95av2
package on the search path whether it be db or environment-based. If
load=TRUE
and no suitable package is found on the search path,
then the function will attempt to load an appropriate package. The
type
argument is used to determine which type of package (db or
env) is loaded first.
If type
is "db"
, an S4 object representing the
requested map. If type
is "env"
, an R
environment
object representing the requested map.
Seth Falcon
map <- getAnnMap("ENTREZID", "hgu95av2", load=TRUE, type=c("env", "db"))
class(map)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.