wwood / kingfisher-download

Easier download/extract of FASTA/Q read data and metadata from the ENA, NCBI, AWS or GCP.
https://wwood.github.io/kingfisher-download
GNU General Public License v3.0
238 stars 37 forks source link

[Question] Does --stdout stream the entire download process? #39

Open jolespin opened 1 month ago

jolespin commented 1 month ago

I'd like to use Kingfisher to download some large files but I get charged for I/O. Was wondering if using --stdout does the following operation:

Or if it just write the final output to stdout.

wwood commented 1 month ago

Hi @jolespin ,

Good question. The way it works is to download the .sra file to disk, and then stream from there. Your pipeline sounds concept reasonable.

So in effect, you are right. The main use-case for this is to source them in the cloud where they are locally stored as .sra format.

One possibility (not implemented atm) is to stream the reads from an ENA download. These would already be split since ENA keeps them this way (as fastq.gz). I probably won't get around to implementing this but would certainly be happy to review a PR.

ben