annotation-tools: Annotation Tools

Description Usage Arguments Functions Examples

Description

The xbioc package contains a few utility functions to facilitate working with Bioconductor annotations, which extends or enhance functions available in packages such as annotate.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11

Arguments

x

an R object, either a character string or an annotation object.

annotation

names of an annotation package, with “.db” suffix or not.

map

name of a map, e.g., “ENTREZID”.

all

logical that indicates if all possible names should be returned, and only the simple concatenation of the annotation package's name without “.db” and the map name.

noext

logical that indicates if returned package names should contain the extension '.db'.

Functions

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# check annotation pkg name
is.annpkg('aaa.db')
is.annpkg(c('bbb.db', 'ccc.db'))
is.annpkg(c('ddd', 'eee.db'))
# check AnnotationDb object
library(hgu133plus2.db)
is.anndb(hgu133plus2.db)
# build annotation bimap object names
biocann_mapname('hgu133plus2.db', 'ENTREZID')
# '.db' extension is skipped
biocann_mapname('hgu133plus2', 'ENTREZID')
# get all possible map names
biocann_mapname('hgu133plus2.db', 'ENTREZID', all=TRUE)
# annotation package name
biocann_pkgname('aa')
# extract the package name from annotation objects
biocann_pkgname(hgu133plus2.db)
biocann_pkgname(hgu133plus2ENTREZID)

# get AnnotationDb object
biocann_pkgobject('hgu133plus2') # extension can be skipped
# the package needs to be installed
try( biocann_pkgobject('aaa') )

renozao/xbioc documentation built on Sept. 3, 2020, 1:13 a.m.