cbp_api | R Documentation |
Core function to retrieve data from cBioPortal API.
cbp_api(
url_path,
method = NULL,
token = get_cbioportal_token(),
body = NULL,
extra_box = FALSE,
quiet = TRUE,
base_url = NULL
)
url_path |
The url path for API call |
method |
Which API method to use. Must be "get" or "post". Default is "get". |
token |
Authentication token, if needed. Default is |
body |
Arguments passed to API call (e.g. sample ID or gene IDs) |
extra_box |
Some functions require an additional list() wrapping around body idk why |
quiet |
Returns queried URL. Default is TRUE |
base_url |
The database URL to query |
A parsed API response
## Not run:
cbp_api(url_path = "genes/TP53", base_url = "public")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.