callGRPCMethod {GoogleGenomics} | R Documentation |
Needs gRPC support at package build time and the RProtoBuf package. See package README for instructions on installing gRPC.
callGRPCMethod(methodName, request)
methodName |
The RPC method name. |
request |
The request object for the RPC, either as a JSON object
generated from |
In general, use higher level methods such as getReads and getVariants instead.
The raw response converted from JSON to an R object, or the RProtoBuf object if the request was an RProtoBuf object.
Other page fetch functions: getReadsPage
,
getSearchPage
,
getVariantsPage
# Authenticated on package load from the env variable GOOGLE_API_KEY. if (isGRPCAvailable()) { request <- list(readGroupSetIds=list("CMvnhpKTFhDnk4_9zcKO3_YB"), referenceName="22", start=16051400, end=16051500, pageToken=NULL) reads <- callGRPCMethod("SearchReads", request) summary(reads) } else { message("gRPC support is disabled; package was not compiled with GRPC") }