Title: | A package to access the oncoKB web API |
---|---|
Description: | It provides access to the oncoKB API using the rapiclient and AnVIL R / Bioconductor packages. It allows access to both public and private APIs. Private API access requires a token obtained from https://www.oncokb.org. |
Authors: | Marcel Ramos [aut, cre] |
Maintainer: | Marcel Ramos <[email protected]> |
License: | Artistic-2.0 |
Version: | 0.99.1 |
Built: | 2024-10-31 02:46:31 UTC |
Source: | https://github.com/waldronlab/oncoKBData |
Obtain the OncoKB cancer gene list
cancerGeneList(api)
cancerGeneList(api)
api |
An OncoKB API instance as returned by |
A long tibble of genes with additional columns
oncokb <- oncoKB() cancerGeneList(oncokb)
oncokb <- oncoKB() cancerGeneList(oncokb)
Get a table of curated oncogenes
curatedGenes(api, includeEvidence = TRUE)
curatedGenes(api, includeEvidence = TRUE)
api |
An OncoKB API instance as returned by |
includeEvidence |
|
A tibble of curated oncogenes
oncokb <- oncoKB() curatedGenes(oncokb)
oncokb <- oncoKB() curatedGenes(oncokb)
The levels of evidence table is an S4Vectors
DataFrame
that includes
metadata consisting of app, api, data, and oncoTree version tags which were
used to generate the table.
levelsOfEvidence(api)
levelsOfEvidence(api)
api |
An OncoKB API instance as returned by |
A DataFrame
with metadata
oncokb <- oncoKB() levelsOfEvidence(oncokb)
oncokb <- oncoKB() levelsOfEvidence(oncokb)
This section of the documentation lists the functions that
allow users to access the oncoKB API. The main representation of the
API can be obtained from the oncoKB
function. The supporting
functions listed here give access to specific parts of the API and
allow the user to explore the API with individual calls.
oncoKB( hostname = "www.oncokb.org", protocol = "https", api. = .DEMO_ENDPOINT, token = character() )
oncoKB( hostname = "www.oncokb.org", protocol = "https", api. = .DEMO_ENDPOINT, token = character() )
hostname |
character(1) The internet location of the service (default: 'www.cbioportal.org') |
protocol |
character(1) The internet protocol used to access the hostname (default: 'https') |
api. |
character(1) The directory location of the API protocol within the hostname (default: '/api/api-docs') |
token |
character(1) The Authorization Bearer token e.g., "63eba81c-2591-4e15-9d1c-fb6e8e51e35d" or a path to text file. |
oncoKB: An API object of class 'oncoKB'
oncokb <- oncoKB() ## Authorization: Bearer token as a file if (interactive()) oncoKB(token = "~/onco_token.txt") names(operations(oncokb))
oncokb <- oncoKB() ## Authorization: Bearer token as a file if (interactive()) oncoKB(token = "~/onco_token.txt") names(operations(oncokb))
The oncoKB
class is a representation of the oncoKB
API protocol that directly inherits from the Service
class in the
AnVIL
package. For more information, see the
AnVIL package.
## S4 method for signature 'oncoKB' operations(x, ..., .deprecated = FALSE)
## S4 method for signature 'oncoKB' operations(x, ..., .deprecated = FALSE)
x |
A Service instance or API representation as given by the oncoKB function. |
... |
additional arguments passed to methods or, for
|
.deprecated |
optional logical(1) include deprecated operations? |
This class takes the static API as provided at https://www.oncoKB.org/api/api-docs and creates an R object with the help from underlying infrastructure (i.e., rapiclient and AnVIL) to give the user a unified representation of the API specification provided by the oncoKB group. Users are not expected to interact with this class other than to use it as input to the functionality provided by the rest of the package.
An oncoKB
class instance.
operations(oncoKB)
:
api_header
named character()
vector passed on to the .headers
argument in add_headers()
oncoKB()
oncoKB()