some questions about edirect
esearch -db nucleotide -query PRJNA257197 | efetch -format fasta > ebola.fasta
this should download all sequence which is about 200+, but i only got the result like below which is only 10+.

i think it`s maybe a net error and it cause it only download part of them. But how can i change that.
I need all of them not part of them. Please help me!!
• 704 views
•
link
1 answer
You have a bioproject ID so you ideally should do the following to get the sequences you need:
$ esearch -db bioproject -query "PRJNA257197" | elink -target nuccore | efetch -format fasta | grep ">" | wc -l
251
There appear to be 251 genomes. To save the sequences to a file
$ esearch -db bioproject -query "PRJNA257197" | elink -target nuccore | efetch -format fasta > ebola.fa
That said, following does seem to work (have not checked why there is a difference of 2 compared to search above).
$ esearch -db nuccore -query "PRJNA257197" | efetch -format fasta | grep ">" | wc -l
249
• 0 views
•
link
Log in to answer this question.
tx, guys. it works now. i guess
elink -target nuccoredo some work.