This is a test version of Biostars. For the public version, visit https://www.biostars.org.
I have a long list of GI and I want their accession number

Hi, As I explained before, I have a long list of GI from genbank and I want to get their corresponding accession number. Is there any way of doing this with efetch or epost? I need it to be quick.

Thank you!

genbank

as you explained before

? :)

3 answers

Get this file and parse out the gi/accession numbers you need: ftp://ftp.ncbi.nih.gov/gene/DATA/gene2accession.gz

thanks. it's the file I need.

Use NCBI's eutils. Something like this: http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=nucleotide&rettype=acc&id=568815597

Sounds like an ideal use case for biomart.

Log in to answer this question.