[Biopython] get more than 20 IDs in IdList

Michiel de Hoon mjldehoon at yahoo.com
Thu Dec 6 02:15:57 UTC 2012


See http://www.ncbi.nlm.nih.gov/books/NBK25499/#chapter4.ESearch under retmax. Also see section 8.15 "Using the history and WebEnv" in the Biopython documentation.

Best,
-Michiel.

--- On Wed, 12/5/12, Mark Budde <markbudde at gmail.com> wrote:

> From: Mark Budde <markbudde at gmail.com>
> Subject: Re: [Biopython] get more than 20 IDs in IdList
> To: "Alex Garnett" <axfelix at gmail.com>
> Cc: "biopython" <biopython at lists.open-bio.org>
> Date: Wednesday, December 5, 2012, 8:09 PM
> 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
> >>
> >
> _______________________________________________
> Biopython mailing list  -  Biopython at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/biopython
> 




More information about the Biopython mailing list