Description Usage Arguments Value Examples
This function access the sqlite
database file which is obtained by
running get_db. Basically, the function provides ways to query the
database to the correlation data of the transcription factors of interest.
The function returns an error if the database file cRegulome.db
is
not in the working directory.
1 |
conn |
A connection such as this returned by
|
tf |
A required |
study |
A |
min_abs_cor |
A |
max_num |
An |
targets_only |
A |
targets |
A |
A tidy data.frame
of four columns. tf
is the official
gene symbols of the genes contains the transcription factor, feature
is the features/genes, cor is the corresponding expression correlations
and study
is TCGA study ID.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # locate the testset file and connect
fl <- system.file('extdata', 'cRegulome.db', package = 'cRegulome')
conn <- RSQLite::dbConnect(RSQLite::SQLite(), fl)
## Not run:
# get transcription factors correlations in all studies
get_tf(conn,
tf = 'LEF1')
## End(Not run)
# get correlations in a particular study
get_tf(conn,
tf = 'LEF1',
study = 'STES')
# enter a custom query with different arguments
get_tf(conn,
tf = 'LEF1',
study = 'STES',
min_abs_cor = .3,
max_num = 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.