Client for the 'OpenGWAS' genotype-phenotype map ('GPMap') application programming interface (API) < https://gpmap.opengwas.io>, which brings together colocalization, rare variant and molecular quantitative trait locus (QTL) results across thousands of traits. Functions retrieve traits, genes, variants and genomic regions with their colocalizing studies, associations, linkage disequilibrium and pleiotropy summaries, search the map by name or variant, and upload genome-wide association study (GWAS) summary statistics for analysis against it.
gpmapr is an R client for the OpenGWAS Genotype-Phenotype Map. You can:
Install the package from GitHub:
# install.packages("pak")
pak::pak("MRCIEU/gpmapr")
library(gpmapr)
# Find a trait, gene or variant
search_gpmap("haemoglobin")
# Then fetch it with the call shown in the `call` column
result <- trait(5020)
head(result$coloc_groups)
See vignette("gpmapr") to get started.
gpmapr checks on the first request of each session that it supports the version of the GPMap API. If the API has changed, you'll see an error asking you to update. Update with:
pak::pak("MRCIEU/gpmapr")
then restart R.