literature_gwas {epigraphdb}R Documentation

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

## Not run: 
literature_gwas(trait = "Body mass index")

## End(Not run)

[Package epigraphdb version 0.2.3 Index]