Hi, I want to download all SRA entries from NCBI, pertaining to one species. I also want to organize it by biosample. For example, I hope to have a directory like this:
Vibrio cholerae
├──biosample1
├──file1.sra
├──file2.sra
├──biosample2
├──file1.sra
...
What do you think? I have already starting thinking of this method with the NCBI edirect CLI utilities but it doesn't quite work. My idea was 1) to find all biosamples labeled with the correct species; 2) find all links to SRA; 3) get the SRA identifiers and SAMN identifiers
esearch -db biosample -query '"Vibrio cholerae"[organism]' |\
elink -target sra -db sra |\
...
I think that this is a good initial list which I am going to start editing by hand. And then the next step--getting the reads and organizing them properly?