get_variants_by_reported_trait: Get GWAS Catalog variants by reported traits

View source: R/get_variants.R

get_variants_by_reported_traitR Documentation

Get GWAS Catalog variants by reported traits

Description

Gets variants that match the reported traits, as reported by the original authors' of the study.

Usage

get_variants_by_reported_trait(
  reported_trait = NULL,
  verbose = FALSE,
  warnings = TRUE,
  page_size = 20L
)

Arguments

reported_trait

A character vector of phenotypic traits as reported by the original authors' the study. Note: this parameter is case sensitive.

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.

Value

A variants object.


ramiromagno/gwasrapidd documentation built on Jan. 3, 2024, 10:21 p.m.