50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

gwasrapidd (version 0.99.17)

get_variants_by_efo_trait: Get GWAS Catalog variants by EFO traits

Description

Gets variants that match EFO trait description.

Usage

get_variants_by_efo_trait(
  efo_trait = NULL,
  verbose = FALSE,
  warnings = TRUE,
  page_size = 20L
)

Value

A variants object.

Arguments

efo_trait

A character vector of EFO trait descriptions, e.g., 'uric acid measurement'.

verbose

Whether the function should be verbose about the different queries or not.

warnings

Whether to print warnings.

page_size

An integer scalar indicating the page value to be used in the JSON requests, can be between 1 and 1000.