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

def Bio::EUtils::DBIdsClient::DBIdsClient::search (   self,
  term,
  db = "pubmed",
  field = None,
  retstart = 0,
  retmax = 20,
  daterange = None,
  dbtype = None 
)

do an Entrez search

The parameters are:
  '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)

  '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)
  'daterange' -- a date restriction; either WithinNDays or DateRange
  
  'dbtype' -- (optional) the database type (Config.PUBLICATION_TYPE
  or SEQUENCE_TYPE).  Overrides the type based on the 'db'

Definition at line 252 of file DBIdsClient.py.

                :
        """do an Entrez search

        The parameters are:
          '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)

          '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)
          'daterange' -- a date restriction; either WithinNDays or DateRange
          
          'dbtype' -- (optional) the database type (Config.PUBLICATION_TYPE
                  or SEQUENCE_TYPE).  Overrides the type based on the 'db'
        """
        set_klass = _get_recordset_constructor(db, dbtype)
        infile = self.eutils.esearch(
            term = term,
            db = db,
            field = field,
            retstart = retstart,
            retmax = retmax,
            daterange = daterange)
        searchinfo = parse.parse_search(infile, [None])

        dbids = Datatypes.DBIds(db, searchinfo.ids)
        return set_klass(self.eutils, dbids, searchinfo)
        return set_klass(self.eutils, dbids, searchinfo)


Generated by  Doxygen 1.6.0   Back to index