pqtl_list: Return a list of all proteins/exposures or traits/outcomes...

View source: R/pqtl.R

pqtl_listR Documentation

Return a list of all proteins/exposures or traits/outcomes available in the database

Description

GET /pqtl/list/

Usage

pqtl_list(flag = c("exposures", "outcomes"), mode = c("table", "raw"))

Arguments

flag

(Optional) A flag which indicates whether the list of exposures (if "exposures") or outcomes (if "outcomes") should be returned. The DEFAULT is "exposures".

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 /pqtl/list/

Examples


# Returns a list of available proteins (exposures)
## Not run: 
pqtl_list()

## End(Not run)

# Returns a list of available traits (outcomes)
## Not run: 
pqtl_list(flag = "outcomes")

## End(Not run)

MRCIEU/epigraphdb-r documentation built on Aug. 29, 2022, 4:05 a.m.