Description Usage Arguments Value See Also Examples
View source: R/get_associations.R
Get all associations for a given variant
1 2 |
rsnum |
RS number for a variant |
chr |
chromosome number if known |
p_lower |
Lower bound on p-values |
p_upper |
Upper bound of p-values |
study |
Restrict to a particular study |
start |
First record to retrieve (starting at 0) |
size |
Maximum number of results to retrieve |
Data frame with associations as rows
1 2 3 4 5 6 7 8 9 10 | # get associations for a given variant
results <- get_variant("rs2228603")
# use information about the chromosome it's on
results <- get_variant("rs2228603", 19)
# get the next 20 results
next20 <- get_variant("rs2228603", 19, start=20)
# get 100 results rather than just 20
first100 <- get_variant("rs2228603", 19, size=100)
# return just the associations with P < 1e-8
top_results <- get_variant("rs2228603", 19, p_upper=1e-8)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.