Description Usage Arguments Details Examples
Connect to the biogridr package's interaction database
1 | src_biogridr(path = getOption("biogridr.db"))
|
path |
Path to BioGRID SQLite database. Defaults to
|
BioGRID interactions are stored in a local SQLite database, and
src_biogridr()
returns a connection to this database via
dplyr. This allows the user to aviod loading all 700,000+
interactions into memory by using dplyr
to select
columns and filter rows.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | ## Not run:
# First download all interaction data
# WARNING: This takes a few minutes!
update_biogridr()
# Connect to the database
db <- src_biogridr()
# Query the database for a CTF4 outer network
outer_net(db, 'CTF4')
# Aggregate the CTF4 outer network
aggregate(outer_net('CTF4'))
# Use dplyr to make custom queries to the database
library(dplyr)
tbl(db, 'systems')
tbl(db, 'organisms')
genes <- c('TOF1', 'CTF4')
organism <- organism('cerevisiae')
tbl(db, 'interactions') %>%
filter(
(a %in% genes | b %in% genes) &
a_organism == organism &
b_organism == organism
) %>%
select(a, b) %>%
collect()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.