[Biopython] get more than 20 IDs in IdList

Mark Budde markbudde at gmail.com
Thu Dec 6 01:09:07 UTC 2012


Thanks. My understanding was that efetch was for getting the records after
you know the IDs. That is what I am trying to do, but I can only get the
first 20 IDs to run through efetch. Is there a way to search through efetch?
-Mark


On Wed, Dec 5, 2012 at 4:57 PM, Alex Garnett <axfelix at gmail.com> wrote:

> 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