extract_instruments | R Documentation |
This function searches for GWAS significant SNPs (for a given p-value) for a specified set of outcomes. It then performs LD based clumping to return only independent significant associations.
extract_instruments(
outcomes,
p1 = 5e-08,
clump = TRUE,
p2 = 5e-08,
r2 = 0.001,
kb = 10000,
opengwas_jwt = ieugwasr::get_opengwas_jwt(),
force_server = FALSE
)
outcomes |
Array of outcome IDs (see |
p1 |
Significance threshold. The default is |
clump |
Logical; whether to clump results. The default is |
p2 |
Secondary clumping threshold. The default is |
r2 |
Clumping r2 cut off. The default is |
kb |
Clumping distance cutoff. The default is |
opengwas_jwt |
Used to authenticate protected endpoints. Login to https://api.opengwas.io to obtain a jwt. Provide the jwt string here, or store in .Renviron under the keyname OPENGWAS_JWT. |
force_server |
Force the analysis to extract results from the server rather than the MRInstruments package. |
data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.