Warning: The request for https://www.ebi.ac.uk/gwas/rest/api/efoTraits/EFO_0000000 failed: response code was 404.
Error: length(efo_trait) not greater than 0
In addition: Warning message:
In gc_request_all(resource_url = resource_url, base_url = base_url, :
Error: length(efo_trait) not greater than 0
That call should not err, but only trigger a warning.
That call should not err, but only trigger a warning.
The problem comes from not asserting the
NULL
value in: https://github.com/ramiromagno/gwasrapidd/blob/d51d07a2d6e97dff1d8ac601546f401ef0ac7977/R/get_variants.R#L181and moving on to the call
get_variants_by_efo_trait
empty-handed.A manifestation of issue #3 .