Learn R Programming

TCGAretriever (version 1.9.1)

cb_query: Core Query Engine

Description

Submit a query by getting or posting to the URL provided as argument (typically a cbioportal.org URL). The function attempts the same query recursively until the content has been completely downloaded. If `body` is NULL, the query is submitted via GET. Otherwise, the query is submitted via POST.

Usage

cb_query(my_url, body = NULL)

Value

Data.frame including data retrieved from cBioPortal.

Arguments

my_url

String. The URL pointing to the cBioPortal API.

body

String. Parameters to be passed via POST to the query URL. Can be NULL.

Author

Damiano Fantini, damiano.fantini@gmail.com

Details

This is a core function invoked by other functions in the package.

References

https://www.data-pulse.com/dev_site/TCGAretriever/

Examples

Run this code
# The example below requires an active Internet connection.
if (FALSE) {
my_url <- "https://www.cbioportal.org/api/studies"
x <- TCGAretriever:::cb_query(my_url)
}
 

Run the code above in your browser using DataLab