gpmapr

gpmapr is an R client for the OpenGWAS Genotype-Phenotype Map. You can:

Installation

Install the package from GitHub:

# install.packages("pak")
pak::pak("MRCIEU/gpmapr")

Usage

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.

Updating

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.