[Biopython] get more than 20 IDs in IdList

Alex Garnett axfelix at gmail.com
Thu Dec 6 00:57:33 UTC 2012


This is a fairly naive solution based on just having joined and harassed
this list with a similar issue a week ago, but is there a reason you can't
use efetch()?

-alex
On Dec 5, 2012 4:54 PM, "Mark Budde" <markbudde at gmail.com> wrote:

> Can someone help me understand how to get more than 20 records in the
> IdList from esearch?
>
> >>> from Bio import Entrez
> >>> Entrez.email = "markbudde at gmail.com"
> >>> handle = Entrez.esearch(db="protein",term="txid9606[Orgn] AND cftr")
> >>> record = Entrez.read(handle)
> >>> len(record["IdList"])
> 20
> >>> record["Count"]
> '354'
>
>
> It seems that I can only ever get 20 IDs in the "IdList", even though the
> "Count" can be much higher.
> Thanks,
> Mark
> _______________________________________________
> Biopython mailing list  -  Biopython at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/biopython
>



More information about the Biopython mailing list