Load a SQL database file and run a function from the AnnotationDbi
package.
Source: R/annotation.R
with_dbi.Rd
An AnnotationDbi
object cannot be used in parallel, so this is a workaround.
Arguments
- annotation_db_file
A character scalar: path to SQLite file of annotation DB, e.g.
org.Hs.eg.db$conn@dbname
.- dbi_fun
A function from the
AnnotationDbi
package which acceptsAnnotationDbi
object as parameterx
, e.g.AnnotationDbi::mapIds()
.- ...
Parameters passed to
dbi_fun
.