Download data from the European Nucleotide Archive (ENA)
ena_download.Rd
This function allows you to download data from the European Nucleotide Archive (ENA) using either a query or accession numbers.
Usage
ena_download(
download_type,
query = NULL,
accession = NULL,
format,
location = getwd(),
email = "NONE"
)
Arguments
- download_type
A character specifying the type of download: 'q' for query or 'a' for accession.
- query
A character string containing the query to retrieve specific data (required for 'q' download type).
- accession
A character string containing accession numbers (required for 'a' download type).
- format
A character string specifying the format of the data to download. It must be one of: 'READS_FASTQ', 'READS_SUBMITTED', 'ANALYSIS_SUBMITTED', 'ANALYSIS_GENERATED'.
- location
A character string specifying the download location (default is the current working directory).
A character string specifying the email address for notifications (default is "NONE").