get_cached_gwascat: use BiocFileCache to retrieve and keep an image of the tsv...

Description Usage Arguments Note

View source: R/cache_current_gwascat.R

Description

use BiocFileCache to retrieve and keep an image of the tsv file

Usage

1
2
3
4
5
get_cached_gwascat(
  url = "http://www.ebi.ac.uk/gwas/api/search/downloads/alternative",
  cache = BiocFileCache::BiocFileCache(),
  ...
)

Arguments

url

character(1) url to use

cache

BiocFileCache::BiocFileCache instance

...

passed to bfcadd

Note

will If query of cache with 'ebi.ac.uk/gwas' returns 0-row tibble, will populate cache with bfcadd. Uses readr::read_tsv on cache content to return tibble. The etag field does not seem to be used at EBI, thus user must check for updates.


gwascat documentation built on Nov. 8, 2020, 11:08 p.m.