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

def Bio::EUtils::ThinClient::ThinClient::elink_using_dbids (   self,
  dbids,
  db = "pubmed",
  cmd = "neighbor",
  retmode = None,
  term = None,
  field = None,
  daterange = None 
)

dbids, db="pubmed", cmd="neighbor", retmode=None, term=None, daterange=None

Find records related (in various ways) to a set of records
specified by identifier.

'dbids' -- a DBIds containing the database name and list
       of record identifiers
'db' -- Where the records link TO.  This is where you want to
  find the new records.  For example, if you want to
  find PubMed records related to a protein then 'db'
  is 'pubmed'.  (The database they are from is part
  of the DBIds object.)

'cmd' -- see the docstring for 'elink_using_history'
'retmode' -- see 'elink_using_history'
'term' -- see 'elink_using_history'
'daterange' -- see 'elink_using_history'

Returns an input stream from an HTTP request.  The stream
contents are in XML unless 'retmode' is 'ref'.

Definition at line 1112 of file ThinClient.py.

                           :
        """dbids, db="pubmed", cmd="neighbor", retmode=None, term=None, daterange=None

        Find records related (in various ways) to a set of records
        specified by identifier.

        'dbids' -- a DBIds containing the database name and list
                       of record identifiers
        'db' -- Where the records link TO.  This is where you want to
                  find the new records.  For example, if you want to
                  find PubMed records related to a protein then 'db'
                  is 'pubmed'.  (The database they are from is part
                  of the DBIds object.)

        'cmd' -- see the docstring for 'elink_using_history'
        'retmode' -- see 'elink_using_history'
        'term' -- see 'elink_using_history'
        'daterange' -- see 'elink_using_history'

        Returns an input stream from an HTTP request.  The stream
        contents are in XML unless 'retmode' is 'ref'.
        """
        id_string = _dbids_to_id_string(dbids)
        query = {"id": id_string,
                 "db": db,
                 "dbfrom": dbids.db,
                 "cmd": cmd,
                 "retmode": retmode,
                 "field" : field,
                 "term": term,
                 }
        if daterange is not None:
            import Datatypes
            if isinstance(daterange, Datatypes.DateRange) and \
               (daterange.mindate is None or daterange.maxdate is None):
                raise TypeError("Both mindate and maxdate must be set for eLink")
            query.update(daterange.get_query_params())
        
        return self._get(program = "elink.fcgi", query = query)
        return self._get(program = "elink.fcgi", query = query)


Generated by  Doxygen 1.6.0   Back to index