Load a SQL database file and run a function from the AnnotationDbi package.
Source: R/annotation.R
with_dbi.RdAn 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
AnnotationDbipackage which acceptsAnnotationDbiobject as parameterx, e.g.AnnotationDbi::mapIds().- ...
Parameters passed to
dbi_fun.