I would like to download all the reference sequences of viruses deposited. I remember this could be done with esearch/efetch and the taxon ID of the species of interest (I believe viruses have ID 10239).
I am trying with:
esearch -db taxonomy -query 10239 | efetch -format=fasta > ref.fa
but I am not getting anything.
What would be the correct syntax?