This function attempts to get a variant by its variant identifier and checks the response code. If the response code is 200 then the response has been successful, meaning that the variant does exist in the GWAS Catalog. If the response is 404 then the variant is not found in the Catalog database. Other errors are mapped to NA.
Arguments
- variant_id
A character vector of GWAS Catalog variant identifiers.
- verbose
Whether the function should be verbose about the different queries or not.
- page_size
An integer scalar indicating the page value to be used in the JSON requests, can be between
1
and1000
.