response: Fetch 'GDCQuery' metadata from GDC

View source: R/response.R

responseR Documentation

Fetch GDCQuery metadata from GDC

Description

Fetch GDCQuery metadata from GDC

Usage

response(x, ...)

## S3 method for class 'GDCQuery'
response(x, from = 0, size = 10, ..., response_handler = jsonlite::fromJSON)

response_all(x, ...)

Arguments

x

a GDCQuery object

...

passed to httr (good for passing config info, etc.)

from

integer index from which to start returning data

size

number of records to return

response_handler

a function that processes JSON (as text) and returns an R object. Default is fromJSON.

Value

A GDCResponse object which is a list with the following members:

  • results

  • query

  • aggregations

  • pages

Examples


# basic class stuff
gCases = cases()
resp = response(gCases)
class(resp)
names(resp)

# And results from query
resp$results[[1]]


Bioconductor/GenomicDataCommons documentation built on Jan. 30, 2024, 11:59 p.m.