Returns every Association of analyses between start and end on chromosome: positions are
GRCh38, one-based and inclusive. The query runs as Jobs on the API, and og_range() waits for
them (see vignette("large-queries-and-jobs")).
Usage
og_range(
src,
analyses,
chromosome,
start,
end,
observed_only = FALSE,
original_units = FALSE,
releases = NULL
)Arguments
- src
A Source, from
og_api()orog_local().- analyses
Analysis identifiers (see
og_analyses()).- chromosome
One chromosome, such as
"9"or"X".- start, end
The first and last position, inclusive.
- observed_only
Leave out Imputed Associations.
- original_units
Give
betaandsein the trait's original units, as inog_tophits().- releases
Store Releases to use, as in
og_analyses().
Value
A data frame with og_provenance() attached.
Details
One Job takes at most 10 Mb and 10 Analyses (from at most 10 GWAS Stores). A wider range or more
Analyses is split into windows of at most 10 Mb, crossed with Analyses, run a few at a time
(og_api(max_in_flight = )), and put back together: you get the rows an unsplit request would
give, ordered by Analysis (in the order asked), chromosome, position and ALID, with every Job in
og_provenance(). A range with more Associations than the API will return in one Job fails with
opengwasr_request_too_large; it is never split to get round that. The columns are those of
og_associations().
Examples
if (FALSE) { # \dontrun{
src <- og_api()
og_range(src, "OGS-00011:GCST003116", chromosome = "9", start = 22090000, end = 22130000)
} # }