I've got a large number of gene IDs from Vector Base (ex: AAEL006343-PA and AAEL001710-PA). Some of these IDs have record in NCBI Protein database.
I'm trying to use Biopython to get gene description and other info from NCBI using the following code (for simplicity I've put one id, but would normally do it as a list)
from Bio import Entrez Entrez.email=emailhere handle=Entrez.efetch(db="protein", id='AAEL006343-PA', rettype="gb", retmode="text") records = Entrez.read(handle)
efetch fails with due to HTTP error Bad Request. I know that data does exist because using id 108877864 i get the result I want. However, 108877864 is the NCBI's own ID for this protein. The only way I found to convert AAEL006343-PA to 108877864 is via esearch, but I don't want to spam NCBI with hundreds of esearch queries.
Is there a way to do this ID conversion as a batch and without esearch?