gor_query | R Documentation |
Run a GOR query
gor_query( query, conn, timeout = 0, page_size = 1e+05, parse = T, relations = NULL, persist = NULL, query.service = "queryserver" )
query |
gor query string |
conn |
gor connection structure, create it using |
timeout |
timeout in seconds, default to 0 (none), uses |
page_size |
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 |
parse |
should the TSV output be parsed into a dataframe? False will make the function return the results as text object |
relations |
list of tables to upload and make available in the query, e.g. |
persist |
remote path to file for saving results of the query into. Query results will not be fetched if this parameter is set. |
query.service |
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
## Not run: 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) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.