Learn R Programming

GoogleGenomics (version 1.4.2)

getSearchPage: Get one page of search results for a particular entity type from Google Genomics.

Description

In general, use higher level methods such as getReads and getVariants instead.

Usage

getSearchPage(entityType, body, fields, pageToken)

Arguments

entityType
Entities with a search API such as reads, variants, variantSets, etc...
body
The body of the message to POST to the search endpoint.
fields
The fields to be returned in the search response.
pageToken
The page token. This can be NULL for the first page.

Value

The raw response converted from JSON to an R object.

See Also

Other page fetch functions: getReadsPage; getVariantsPage

Examples

Run this code
# Authenticated on package load from the env variable GOOGLE_API_KEY.
body <- list(readGroupSetIds=list("CMvnhpKTFhDnk4_9zcKO3_YB"),
             referenceName="22",
             start=16051400, end=16051500, pageToken=NULL)
reads <- getSearchPage("reads", body, NULL, NULL)
summary(reads)

Run the code above in your browser using DataLab