Hi, Thank you. However, is there any command to download nucleotide sequences from all the viruses? I am trying to get which species of the virus in the input data (assembled reads of fastq files). I am using the following command but it shows an error. Please let me know how to improve this command.
esearch -db nucleotide -query "virus" | efetch -format acc >acc_ID
I assume you mean CDS's from accession IDs?
You could do something like this but it would be useful to use a very specific query than just "virus".
Thanks for your help. However, I am looking to download just gi number, not fasta seq. Also, my goal to download all gi numbers of genes from all viruses is that because we want to see if our samples (fastq files) extracted from animals have any similarity to the genes in the virus. Consequently, it can give us the idea if the samples are pathogenic. Also, I mentioned CDS mistakenly, I need to download GI numbers from all viruses not CDS. According to the gi's header information such as "Influenza B virus (B/Victoria/4/2012) polymerase PA (PA) gene", "HIV-1 isolate F7S2CL10 gag protein (gag) gene" etc., we can see the virus names.
ginumbers are deprecated for use outside NCBI. You should switch your workflow to use accession numbers instead.Ok! Could you please let me know the command of downloading all accession numbers of genes in all virus.
Hi, please let me know if you have an idea of downloading accession number of genes in all virus species.