Esearch results not matching up with online results
1
0
Entering edit mode
5.9 years ago
cha27cha • 0

I am using the code below to perform an esearch, but the id's that I get from IdList are not matching up with the ID's on the online search.

 handle = Entrez.esearch(db = "nucleotide", term = "chordata[orgn] AND chromosome", retmax = 200, idtype = "acc")
 genome_ids = Entrez.read(handle)['IdList']

Does anyone know why? And does anyone know how I can download the chromosomal and mitochondrial genome of all the organisms from the chordata phylum? I want to do it using BioPython through the E-utilities.

biopython entrez esearch • 1.3k views
ADD COMMENT
0
Entering edit mode

If your code doesn't retrieve the same thing as the online tool, it means it's doing something different. The most common source of discrepancies is the use of different parameters, in particular default parameters can be different between the web site and the code.

For downloading large data sets from NCBI, I would recommend using their FTP site. E-utilities are slow and if you hammer the NCBI web site with queries, you'll get banned.

ADD REPLY
2
Entering edit mode
5.5 years ago
vkkodali_ncbi ★ 3.7k

You cannot call IdList directly like that. Try the following:

handle = Entrez.esearch(db = "nucleotide", term = "chordata[orgn] AND chromosome", retmax = 200, idtype = "acc")
genome_ids = Entrez.read(handle)
genome_ids = genome_ids['IdList']
ADD COMMENT

Login before adding your answer.

Traffic: 2102 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6