get_anno_db | R Documentation |
Get annotation database or environment
get_anno_db( x, revmap_suffix = c("2EG", "2ENTREZID", "2NAME"), ignore.case = FALSE, verbose = FALSE, ... )
x |
character name of an annotation object, or an annotation object itself. |
revmap_suffix |
character string indicting the expected suffix
that can be used to create reverse-mapped annotation data, for
example the suffix |
ignore.case |
|
verbose |
logical indicating whetheer to print verbose output. |
... |
additional arguments are ignored. |
This function is a simple wrapper function that takes either an
annotation data name, for example from the AnnotationDbi
package,
or an annotation object, and returns the annotation object.
In the event the annotation object must be derived using
AnnotationDbi::revmap()
, then that process is performed, and the
reverse mapped annotation object is returned.
When invoking with argument ignore.case=TRUE
, this function
returns keys that have been converted to lowercase. The process
can be fairly slow (~5 seconds per human genome annotation),
but results in an annotation that can be used directly and
may be faster for repeated use than calling imget()
.
The alternative to ignore.case=TRUE
is to call imget()
for
direct query of an annotation, or call freshenGenes(..., ignore.case=TRUE)
which will call imget()
internally.
In our benchmark tests, using imget()
appears to add roughly
0.1 seconds per query, regardless of the number of input entries.
This appears to be the time it takes to spool the list of annotation
keys stored in the SQLite database, and may therefore be dependent upon
the size of the annotation file.
Other genejam:
freshenGenes2()
,
freshenGenes3()
,
freshenGenes()
,
is_empty()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.