Skip to contents

Get URL for each file in the ENA's FTP repository

Usage

get_url_ena(sample_info = NULL, link_from = "api")

Arguments

sample_info

Data frame of sample metadata created with the function create_sample_info.

link_from

Method to extract the URL to each FASTQ file in the ENA's ftp repository. One of 'api' or 'iterative'. Default: 'api'.

Value

A character vector with the URL for each accession.

Examples

data(sample_info)
get_url_ena(sample_info)
#> [1] "ftp.sra.ebi.ac.uk/vol1/fastq/SRR103/008/SRR1039508/SRR1039508_1.fastq.gz"
#> [2] "ftp.sra.ebi.ac.uk/vol1/fastq/SRR103/008/SRR1039508/SRR1039508_2.fastq.gz"