downloadEncode {ENCODExplorer} | R Documentation

## downloadEncode is used to download a serie of files or datasets using their accession.

### Description

downloadEncode is used to download a serie of files or datasets using their accession.

### Usage

    downloadEncode(file_acc = NULL, df = NULL, format = "all", dir = ".",
      force = TRUE)

### Arguments

`file_acc` | A `character` of ENCODE file or experiment accessions. Can also be a data.table coming from any ENCODExplorer search function.
`df` | The reference `data.table` used to find the download. Files that are not available will be searched directly through the current ENCODE database.
`format` | The specific file format to download. Default : all
`dir` | The directory to locate the downloaded files
`force` | `boolean` to allow downloading a file even if it already exists in the directory. Default : TRUE

### Value

A `character` with the downloaded files

### Examples

     fuzzy_result <- fuzzySearch("ENCSR396EAG", encode_df, filterVector = "accession")
     ## Not run: downloadEncode(fuzzy_result, format="tsv")

[Package ENCODExplorer version 2.6.0 Index]