Run a GOR query
gor_query(
query,
conn,
timeout = 0,
page_size = 1e+05,
parse = T,
relations = NULL,
persist = NULL,
query.service = "queryserver"
)
gor query string
gor connection structure, create it using platform_connect
timeout in seconds, default to 0 (none), uses setTimeLimit
to interrupt, note that setting any limit has a small overhead – well under 1% on the systems measured.
large results are returned in paged responses, this parameter controls the page size (e.g. 1000 lines at a time), default is 100k. A value of 0 means everything is fetched in one request
should the TSV output be parsed into a dataframe? False will make the function return the results as text object
list of tables to upload and make available in the query, e.g. list(cars = cars, letters = data.frame(letter = letters))
, refer to them in the query using [] around their names, e.g. nor -h [cars]
remote path to file for saving results of the query into. Query results will not be fetched if this parameter is set.
query service to use - either 'queryservice' (old) or 'queryserver' (new). Default: queryservice
data.frame of gor results, i.e. gor results are passed to read_tsv
if (FALSE) {
api_key <- Sys.getenv("GOR_API_KEY")
project <- Sys.getenv("GOR_PROJECT")
conn <- platform_connect(api_key, project)
"gor #dbsnp# | top 100" %>%
gor_query(conn)
}