list_gwas_traits: List the available gwas traits

View source: R/gwas.R

list_gwas_traitsR Documentation

List the available gwas traits

Description

Return the gwas traits available in the gwas catalog, based on keywords. The traits are found using grep on the 'DISEASE/TRAIT' column from the gwas object produced by create_gwas. Output can be used as parameter for vargen_pipeline

Usage

list_gwas_traits(keywords = "", gwas_cat)

Arguments

keywords

a vector of keywords to grep the traits from the gwas catalog. (default: "")

gwas_cat

output from create_gwas

Value

a vector of traits

Examples

list_gwas_traits(keywords = c("type 1 diabetes", "Obesity"))

MCorentin/vargen documentation built on Feb. 6, 2024, 2:32 p.m.