View source: R/plotting_depmap.R
get_depmap_plot_data | R Documentation |
Based on the requested data type, this function will create a dataframe from the DepMap database that can be used for plotting.
get_depmap_plot_data(gene, data.type, depmap.meta, depmap.pool)
gene |
Character scalar of gene name. |
data.type |
Character scalar of data type to retrieve. One of "dependency", "crispr", "rnai", "cn", or "ccle_tpm". |
depmap.meta |
data.frame of DepMap cell line metadata, as stored in the 'meta' table
of the SQLite database built by |
depmap.pool |
pool connection to DepMap SQLite database built with |
data.frame containing appropriate DepMap data for plotting.
Jared Andrews
plot_depmap_lineages
## Not run:
library(CRISPRball)
build_depmap_db(retrieve = c("meta", "crispr"))
pool <- pool::dbPool(RSQLite::SQLite(), dbname = "depmap_db.sqlite")
depmap.meta <- pool::dbGetQuery(pool, "SELECT * FROM 'meta'")
df <- get_depmap_plot_data(
gene = "CDK2", data.type = "crispr",
depmap.meta = depmap.meta, depmap.pool = pool
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.