Logo Search packages:      
Sourcecode: python-biopython version File versions

def Bio::EUtils::ThinClient::ThinClient::esearch (   self,
  term,
  db = "pubmed",
  field = None,
  daterange = None,
  retstart = 0,
  retmax = 20,
  usehistory = 0,
  webenv = None 
)

term, db="pubmed", field=None, daterange=None, retstart=0, retmax=20, usehistory=0, webenv=none

Search the given database for records matching the query given
in the 'term'.  See the module docstring for examples.

'term' -- the query string in the Entrez query language; see
   http://www.ncbi.nlm.nih.gov/entrez/query/static/help/pmhelp.html
'db' -- the database to search

'field' -- the field to use for unqualified words
  Eg, "dalke[au] AND gene" with field==None becomes
    dalke[au] AND (genes[MeSH Terms] OR gene[Text Word]
  and "dalke[au] AND gene" with field=="au" becomes
    dalke[au] AND genes[Author]
 (Yes, I think the first "au" should be "Author" too)

'daterange' -- a date restriction; either WithinNDays or DateRange
'retstart' -- include identifiers in the output, starting with
  position 'retstart' (normally starts with 0)
'retmax' -- return at most 'retmax' identifiers in the output
  (if not specified, NCBI returns 20 identifiers)

'usehistory' -- flag to enable history tracking
'webenv' -- if this string is given, add the search results
  to an existing history. (WARNING: the history disappers
  after about an hour of non-use.)

You will need to parse the output XML to get the new QueryKey
and WebEnv fields.

Returns an input stream from an HTTP request.  The stream
contents are in XML.

Definition at line 651 of file ThinClient.py.

                 :
        
        """term, db="pubmed", field=None, daterange=None, retstart=0, retmax=20, usehistory=0, webenv=none

        Search the given database for records matching the query given
        in the 'term'.  See the module docstring for examples.

        'term' -- the query string in the Entrez query language; see
           http://www.ncbi.nlm.nih.gov/entrez/query/static/help/pmhelp.html
        'db' -- the database to search

        'field' -- the field to use for unqualified words
                  Eg, "dalke[au] AND gene" with field==None becomes
                    dalke[au] AND (genes[MeSH Terms] OR gene[Text Word]
                  and "dalke[au] AND gene" with field=="au" becomes
                    dalke[au] AND genes[Author]
                 (Yes, I think the first "au" should be "Author" too)

        'daterange' -- a date restriction; either WithinNDays or DateRange
        'retstart' -- include identifiers in the output, starting with
                  position 'retstart' (normally starts with 0)
        'retmax' -- return at most 'retmax' identifiers in the output
                  (if not specified, NCBI returns 20 identifiers)

        'usehistory' -- flag to enable history tracking
        'webenv' -- if this string is given, add the search results
                  to an existing history. (WARNING: the history disappers
                  after about an hour of non-use.)

        You will need to parse the output XML to get the new QueryKey
        and WebEnv fields.

        Returns an input stream from an HTTP request.  The stream
        contents are in XML.
        """
        query = {"term": term,
                 "db": db,
                 "field": field,
                 "retstart": retstart,
                 "retmax": retmax,
                 "usehistory": usehistory,
                 "WebEnv": webenv,
                 }
        if daterange is not None:
            query.update(daterange.get_query_params())
        
        return self._get(program = "esearch.fcgi", query = query)
    
    def epost(self,


Generated by  Doxygen 1.6.0   Back to index