Title: | R Wrapper for DGIdb |
---|---|
Description: | The rDGIdb package provides a wrapper for the Drug Gene Interaction Database (DGIdb). For simplicity, the wrapper query function and output resembles the user interface and results format provided on the DGIdb website (https://www.dgidb.org/). |
Authors: | Thomas Thurnherr, Franziska Singer, Daniel J. Stekhoven, and Niko Beerenwinkel |
Maintainer: | Lars Bosshard <[email protected]> |
License: | MIT + file LICENSE |
Version: | 1.31.1 |
Built: | 2024-07-21 03:00:41 UTC |
Source: | https://github.com/bioc/rDGIdb |
Creates a plot to visualize the number of interactions per source.
plotInteractionsBySource(queryResult, ...)
plotInteractionsBySource(queryResult, ...)
queryResult |
A |
... |
Other arguments passed to barplot. |
A plot is created on the current graphics device.
Thomas Thurnherr <[email protected]>
Wagner AH, Coffman AC, Ainscough BJ, Spies NC, Skidmore ZL, Campbell KM, Krysiak K, Pan D, McMichael JF, Eldred JM, Walker JR, Wilson RK, Mardis ER, Griffith M, Griffith OL. DGIdb 2.0: mining clinically relevant drug-gene interactions. Nucleic Acids Research. 2016 Jan 4;44(D1):D1036-44. doi:10.1093/nar/gkv1165.
rDGIdbResult
, queryDGIdb
,
rDGIdbFilters
queryResult <- queryDGIdb('KRAS') plotInteractionsBySource(queryResult)
queryResult <- queryDGIdb('KRAS') plotInteractionsBySource(queryResult)
Provides an interface to query DGIdb from within R using the DGIdb API. The function is implemented to reflect the as good as possible the web-interface.
queryDGIdb(genes, sourceDatabases = NULL, geneCategories = NULL, interactionTypes = NULL)
queryDGIdb(genes, sourceDatabases = NULL, geneCategories = NULL, interactionTypes = NULL)
genes |
A character vector of genes for which drug interactions are queried. |
sourceDatabases |
A character vector of source databases to be queried. To query all
available databases, skip argument or use |
geneCategories |
A character vector of gene categories to be queried. To query for all
gene categories, skip argument or use |
interactionTypes |
A character vector of interaction types to be queried. To query for all
interaction types, skip argument or use |
Only the first argument (genes
) is required, all other arguments are
optional. When optional arguments are not provided, the query considers all
available possibilities for optional arguments: sourceDatabases
,
geneCategories
, and interactionTypes
.
A S4 object of type rDGIdbResult
.
Thomas Thurnherr <[email protected]>
Wagner AH, Coffman AC, Ainscough BJ, Spies NC, Skidmore ZL, Campbell KM, Krysiak K, Pan D, McMichael JF, Eldred JM, Walker JR, Wilson RK, Mardis ER, Griffith M, Griffith OL. DGIdb 2.0: mining clinically relevant drug-gene interactions. Nucleic Acids Research. 2016 Jan 4;44(D1):D1036-44. doi:10.1093/nar/gkv1165.
rDGIdbResult
, rDGIdbFilters
,
plotInteractionsBySource
genes <- c("XYZA", "TNF", "IL6", "IL8") result <- queryDGIdb(genes = genes) result <- queryDGIdb(genes = genes, sourceDatabases = c("MyCancerGenome","TEND","TTD"), geneCategories = "CELL SURFACE", interactionTypes = c("activator","inhibitor"))
genes <- c("XYZA", "TNF", "IL6", "IL8") result <- queryDGIdb(genes = genes) result <- queryDGIdb(genes = genes, sourceDatabases = c("MyCancerGenome","TEND","TTD"), geneCategories = "CELL SURFACE", interactionTypes = c("activator","inhibitor"))
The gene categories, interaction types, and source databases available to
filter queries with queryDGIdb
.
geneCategories() interactionTypes() sourceDatabases()
geneCategories() interactionTypes() sourceDatabases()
geneCategories
returns a character vector of available gene categories
which can be used to filter DGIdb queries with queryDGIdb
.
interactionTypes
returns a character vector of available interaction
types which can be used to filter DGIdb queries with queryDGIdb
.
sourceDatabases
returns a character vector of available source databases
which can be used to filter DGIdb queries with queryDGIdb
.
Thomas Thurnherr <[email protected]>
Wagner AH, Coffman AC, Ainscough BJ, Spies NC, Skidmore ZL, Campbell KM, Krysiak K, Pan D, McMichael JF, Eldred JM, Walker JR, Wilson RK, Mardis ER, Griffith M, Griffith OL. DGIdb 2.0: mining clinically relevant drug-gene interactions. Nucleic Acids Research. 2016 Jan 4;44(D1):D1036-44. doi:10.1093/nar/gkv1165.
queryDGIdb
, rDGIdbResult
,
plotInteractionsBySource
geneCategories() interactionTypes() sourceDatabases() res <- queryDGIdb(genes = "AP1", interactionTypes = NULL, geneCategories = NULL, sourceDatabases = NULL)
geneCategories() interactionTypes() sourceDatabases() res <- queryDGIdb(genes = "AP1", interactionTypes = NULL, geneCategories = NULL, sourceDatabases = NULL)
S4 helper functions to access DGIdb results, formatted in a similar way as result tables on the DGIdb web interface.
## S4 method for signature 'rDGIdbResult' resultSummary(object) ## S4 method for signature 'rDGIdbResult' detailedResults(object) ## S4 method for signature 'rDGIdbResult' byGene(object) ## S4 method for signature 'rDGIdbResult' searchTermSummary(object)
## S4 method for signature 'rDGIdbResult' resultSummary(object) ## S4 method for signature 'rDGIdbResult' detailedResults(object) ## S4 method for signature 'rDGIdbResult' byGene(object) ## S4 method for signature 'rDGIdbResult' searchTermSummary(object)
object |
A |
resultSummary
returns a data.frame
that summarizes drug-gene
interactions by the source(s) that reported them.
detailedResult
returns a data.frame
with search terms matching
exactly one gene that has one or more drug interactions.
byGene
returns a data.frame
with drug interaction count and
druggable categories associated with each gene.
searchTermSummary
returns a data.frame
that summarizes the
attempt to map gene names supplied by the user to gene records in DGIdb.
Thomas Thurnherr <[email protected]>
Wagner AH, Coffman AC, Ainscough BJ, Spies NC, Skidmore ZL, Campbell KM, Krysiak K, Pan D, McMichael JF, Eldred JM, Walker JR, Wilson RK, Mardis ER, Griffith M, Griffith OL. DGIdb 2.0: mining clinically relevant drug-gene interactions. Nucleic Acids Research. 2016 Jan 4;44(D1):D1036-44. doi:10.1093/nar/gkv1165.
queryDGIdb
, rDGIdbFilters
,
plotInteractionsBySource
genes <- c("XYZA", "TNF", "IL6", "IL8") result <- queryDGIdb(genes = genes) resultSummary(result) detailedResults(result) byGene(result) searchTermSummary(result)
genes <- c("XYZA", "TNF", "IL6", "IL8") result <- queryDGIdb(genes = genes) resultSummary(result) detailedResults(result) byGene(result) searchTermSummary(result)
Prints the version numbers of all DGIdb resources.
resourceVersions()
resourceVersions()
Returns a data.frame
with two columns, the name and the
version numbers of the resources.
Thomas Thurnherr <[email protected]>
http://dgidb.genome.wustl.edu/sources
resourceVersions()
resourceVersions()