Description Usage Arguments Value Examples
View source: R/connect_database.R
This function downloads the RegulonDB SQLite database file prior to making a connection to it. It will cache the database file such that subsequent calls will run faster. This function requires an active internet connection.
1 2 3 4 | connect_database(
ah = AnnotationHub::AnnotationHub(),
bfc = BiocFileCache::BiocFileCache()
)
|
ah |
An |
bfc |
A |
An SQLiteConnection-class connection to the RegulonDB database.
1 2 3 4 5 | ## Connect to the RegulonDB database if necessary
if (!exists("regulondb_conn")) regulondb_conn <- connect_database()
## Connect to the database without using AnnotationHub
regulondb_conn_noAH <- connect_database(ah = NULL)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.