This function gets a GWAS Catalog by URL endpoint. The response must correspond to one of the four types of entities: studies, associations, variants or traits.
gc_get(
resource_url,
base_url = gwas_rest_api_base_url,
verbose = FALSE,
warnings = TRUE,
page_size = 20L
)
A normalised JSON-list corresponding to either studies, associations, variants or traits.
Endpoint URL. The endpoint is internally appended to the
base_url
. It should start with a forward slash (/
).
The GWAS REST API base URL (one should not need to change its default value).
Whether to be chatty.
Whether to print warnings.
Page parameter used in the URL endpoint.