Learn R Programming

epigraphdb (version 0.2.3)

literature_gwas: Literature evidence regarding a GWAS trait

Description

GET /literature/gwas

Usage

literature_gwas(trait, semmed_predicate = NULL, mode = c("table", "raw"))

Arguments

trait

A trait name

semmed_predicate

Either NULL which returns entries from all predicates, or a SemMed predicate e.g. "DIAGNOSES" or "ASSOCIATED_WITH"

mode

If mode = "table", returns a data frame (a tibble as per tidyverse convention). If mode = "raw", returns a raw response from EpiGraphDB API with minimal parsing done by httr.

Value

Data from GET /literature/gwas

Examples

Run this code
# NOT RUN {
literature_gwas(trait = "Body mass index")
# }

Run the code above in your browser using DataLab