This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to retrieve DNA sequence from GI number using Biopython?

I try to use Biothon to retrieve DNA sequence, the following code can get DAN sequence by a GenBank access number, but cannot get sequence from a GI number, can someone help me? Thank you!

accessId='U09422'
handle = Entrez.efetch(db='nuccore', rettype="gb", id=accessId,retmode="text")
sequence

1 answer

NCBI no longer uses GI numbers. You will have to use accession numbers.

Thank you for answering my question!

Log in to answer this question.