Entering edit mode
4.4 years ago
Biogeek
▴
470
I've had a search and I can't seem to find any relatable questions.
My task is as follows:
- I have a list of Refseq accessions in a .txt file.
- I want to download all the associated genomes to seperate .fasta files in a local directory.
I note that I can use Entrez or NCBI assembly downloader, but this puts all genomes into the one .fasta file which isn't ideal.
Can anyone help?
Thanks
Good call genomax, thanks! I've now installed the Entrez utilities and can obtain my record with efetch. I'll write a loop using the 'list.txt' file I have which contains accession numbers.
One more question, apologies for the ignorance (as required), is there a way I can also obtain my .fasta files with the TaxId on the headers as well?
Thanks!
If you use
Entrezdirect
then useepost
method instead of a loop. It will do the same thing. You will need to post-process the files to addtaxID
to headers. I don't think there is a way to do this automatically.