study_to_pgs: Map GWAS studies identifiers to PGS identifiers

View source: R/id_mapping.R

study_to_pgsR Documentation

Map GWAS studies identifiers to PGS identifiers

Description

Map GWAS studies identifiers to PGS identifiers.

Usage

study_to_pgs(study_id, verbose = FALSE, warnings = TRUE, progress_bar = TRUE)

Arguments

study_id

A character vector of GWAS Catalog study accession identifiers, e.g., "GCST001937".

verbose

A logical indicating whether the function should be verbose about the different queries or not.

warnings

A logical indicating whether to print warnings, if any.

progress_bar

Whether to show a progress bar as the queries are performed.

Value

A data frame of two columns: study_id and pgs_id.

Examples

## Not run: 
study_to_pgs('GCST001937')
study_to_pgs(c('GCST000998', 'GCST000338'))

## End(Not run)

quincunx documentation built on July 9, 2023, 7:32 p.m.