Structs

CLI options and arguments

A struct to hold the parsed data from the ENA API and return it to the user

Enums

Functions

Validate the total number of concurrent requests to make to the ENA API to make sure it is within the bounds of 1 and 10. If not, return the minimum if num_requests is less than 1 or maximum value if num_requests is larger than 10. We have chosen to bound it to 10 to be nice to the ENA API.

A function to query the ENA API and return a vector of Run instances This function is used to query the ENA API concurrently across multiple accessions

A function to handle output in the csv format. This function outputs one read per line.

A function to handle output in the long csv format. This function prints one variable per line.

A function to handle output in the wide csv format. This function outputs one run per line.

A function to read accessions from a file and return a vector of validated accessions. The function skips any empty lines, and will issue a warning if it encounters an invalid accession. This deals with any potential header lines in the file.