fetch_and_clean_raw_ENCODE_tables: Fetches and preprocess the raw metadata tables from ENCODE.

Description Usage Arguments Value Examples

View source: R/prepare_data.R

Description

Fetches and preprocess the raw metadata tables from ENCODE.

Usage

1
2
3
4
5
6
fetch_and_clean_raw_ENCODE_tables(
  cache_filename = "tables.RDA",
  types = get_encode_types(),
  overwrite = FALSE,
  precache = NULL
)

Arguments

cache_filename

A file name for caching the selected tables into.

types

The names of the tables to extract using the ENCODE rest api.

overwrite

If cache_filename already exists, should it be overwritten? Default: FALSE.

precache

A path to cache the raw metadata as returned by ENCODE and parsed using jsonlite. If NULL, no caching is performed. Default: FALSE.

Value

A list with all selected tables from ENCODE.

Examples

1
2
3
fetch_and_clean_raw_ENCODE_tables(cache_filename = "platform.RDA", types = "platform")
file.remove("platform.RDA")
    

ArnaudDroitLab/ENCODExplorerData documentation built on Oct. 8, 2020, 1:32 a.m.