Title: | PharmacOGenomics Ontology Support |
---|---|
Description: | Provide simple utilities for querying bhklab PharmacoDB, modeling API outputs, and integrating to cell and compound ontologies. |
Authors: | Vince Carey <[email protected]> |
Maintainer: | VJ Carey <[email protected]> |
License: | Artistic-2.0 |
Version: | 1.27.0 |
Built: | 2024-11-18 03:58:19 UTC |
Source: | https://github.com/bioc/pogos |
subscripting on DRProfSet extracts a profile for a single drug whose name constitutes the index
## S4 method for signature 'DRProfSet,character,ANY,ANY' x[i, j, ..., drop = TRUE]
## S4 method for signature 'DRProfSet,character,ANY,ANY' x[i, j, ..., drop = TRUE]
x |
instance of DRProfSet |
i |
character(1) drug name |
j |
not used |
... |
not used |
drop |
logical(1) not used |
a DRProfSet instance restricted to experiments involving the selected drug
convert binary output of GET()$content to list
basicDecoder(x)
basicDecoder(x)
x |
string suitable for input to GET as GET(x) |
output of fromJSON, typically a list
cl = basicDecoder('https://pharmacodb.pmgenomics.ca/api/v1/cell_lines') unlist(cl)
cl = basicDecoder('https://pharmacodb.pmgenomics.ca/api/v1/cell_lines') unlist(cl)
compounds_v1: serialization of compounds info from PharmacoDb v1
compounds_v1 tissues_v1 cell_lines_v1 datasets_v1 CCLE_drts
compounds_v1 tissues_v1 cell_lines_v1 datasets_v1 CCLE_drts
S4Vectors DataFrame instance
S4Vectors DataFrame instance
S4Vectors DataFrame instance
S4Vectors DataFrame instance
DRTraceSet instance
PharmacoDb Sept 2017
PharmacoDb Sept 2017
PharmacoDb Sept 2017
PharmacoDb Sept 2017
PharmacoDb April 2018
data(compounds_v1) head(compounds_v1) data(tissues_v1) head(tissues_v1) data(cell_lines_v1) head(cell_lines_v1) data(datasets_v1) head(datasets_v1) data(CCLE_drts) CCLE_drts
data(compounds_v1) head(compounds_v1) data(tissues_v1) head(tissues_v1) data(cell_lines_v1) head(cell_lines_v1) data(datasets_v1) head(datasets_v1) data(CCLE_drts) CCLE_drts
initial version of compound browser over pharmacoDb cells
compoundsByCell()
compoundsByCell()
only used for side effect of running shiny app
Simple shiny app demonstrating coverage of PharmacoDb compounds by CHEBI. If a cell line selected is not present in selected dataset, the app will wait for a compatible selection to be made.
if (!requireNamespace("shiny")) stop("install shiny to use compoundsByCell") if (interactive()) print(compoundsByCell())
if (!requireNamespace("shiny")) stop("install shiny to use compoundsByCell") if (interactive()) print(compoundsByCell())
DRProfSet is a class for managing dose-response information about cell lines from a pharmacogenomics dataset
getDrugs extracts drug list
DRProfSet manages all data from a given cell line from a pharmacogenomics source
getDrugs(x) DRProfSet(cell_line = "MCF7", dataset = "CCLE") ## S4 method for signature 'DRProfSet,missing' plot(x, y, ...)
getDrugs(x) DRProfSet(cell_line = "MCF7", dataset = "CCLE") ## S4 method for signature 'DRProfSet,missing' plot(x, y, ...)
x |
instance of DRProfSet |
cell_line |
character(1) cell line name, entries in cell_lines_v1 |
dataset |
character(1) resource name, entries in datasets_v1 |
y |
for plot: not used |
... |
not used |
getDrugs: character vector
instance of DRProfSet
if (interactive()) trs = DRTraceSet() else trs = iriCCLE() ps = traces(trs)[[1]] ps getDrugs(ps) if (interactive()) DRProfSet()
if (interactive()) trs = DRTraceSet() else trs = iriCCLE() ps = traces(trs)[[1]] ps getDrugs(ps) if (interactive()) DRProfSet()
DRTraceSet class manages dose-response information for a single cell line, multiple drugs
DRTraceSet constructor for multiple cell lines, single drug, single dataset
## S4 method for signature 'DRTraceSet,missing' plot(x, y, ...) DRTraceSet( cell_lines = c("SK-ES-1", "TC-71", "MHH-ES-1", "HCC-56", "SK-HEP-1"), drug = "Irinotecan", dataset = "CCLE" )
## S4 method for signature 'DRTraceSet,missing' plot(x, y, ...) DRTraceSet( cell_lines = c("SK-ES-1", "TC-71", "MHH-ES-1", "HCC-56", "SK-HEP-1"), drug = "Irinotecan", dataset = "CCLE" )
x |
for plot: instance of DRTraceSet |
y |
for plot: not used |
... |
not used |
cell_lines |
character vector of cell line names, must be found in 'cell_lines_v1' data of pogos package |
drug |
character(1) drug name in 'compounds_v1' |
dataset |
character(1) dataset known to pharmacodb.pmgenomics.ca |
instance of DRTraceSet
Will query pharmacodb for relevant dose-response information
DRTraceSet()
DRTraceSet()
obtain an example trace set stored locally, for irinotecan and selected cell lines
iriCCLE()
iriCCLE()
an instance of DRTraceSet
iri = iriCCLE() iri plot(iri)
iri = iriCCLE() iri plot(iri)
very simple query formulation, build queries using endpoints of bhklab PharmacoDB API
rxdbQuery_v1( ..., url = "https://pharmacodb.pmgenomics.ca/api/v1/", decoder = basicDecoder )
rxdbQuery_v1( ..., url = "https://pharmacodb.pmgenomics.ca/api/v1/", decoder = basicDecoder )
... |
typically a string representing an API endpoint, will be processed by unlist() and then to paste0 preceded by |
url |
of a PharmacoDB server API target |
decoder |
a function of one argument that will be applied to API response (typically JSON) |
typically a list, dependent on decoder parameter
qout = rxdbQuery_v1('cell_lines') # yields 30; append '?all=true' to retrieve all unlist(lapply(qout, function(x) x[[2]]))
qout = rxdbQuery_v1('cell_lines') # yields 30; append '?all=true' to retrieve all unlist(lapply(qout, function(x) x[[2]]))
enumerate top level endpoint terms for bhklab PharmacoDB API
topEndpoints_v1()
topEndpoints_v1()
a character vector of available endpoints
topEndpoints_v1()
topEndpoints_v1()
trace extractor
traces(x)
traces(x)
x |
instance of DRTraceSet |
a list of DRProfile instances
iri = iriCCLE() str(traces(iri)[[1]])
iri = iriCCLE() str(traces(iri)[[1]])