Back to index

python-biopython  1.60
Public Member Functions | Private Attributes
Bio.Blast.NCBIStandalone._DatabaseReportConsumer Class Reference
Inheritance diagram for Bio.Blast.NCBIStandalone._DatabaseReportConsumer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def start_database_report
def database
def posted_date
def num_letters_in_database
def num_sequences_in_database
def ka_params
def gapped
def ka_params_gap
def end_database_report

Private Attributes

 _dr

Detailed Description

Definition at line 1262 of file NCBIStandalone.py.


Member Function Documentation

Definition at line 1267 of file NCBIStandalone.py.

01267 
01268     def database(self, line):
01269         m = re.search(r"Database: (.+)$", line)
01270         if m:
01271             self._dr.database_name.append(m.group(1))
01272         elif self._dr.database_name:
01273             # This must be a continuation of the previous name.
01274             self._dr.database_name[-1] = "%s%s" % (self._dr.database_name[-1],
01275                                                    line.strip())

Definition at line 1295 of file NCBIStandalone.py.

01295 
01296     def gapped(self, line):
01297         self._dr.gapped = 1

Definition at line 1291 of file NCBIStandalone.py.

01291 
01292     def ka_params(self, line):
01293         x = line.split()
01294         self._dr.ka_params = map(_safe_float, x)

Definition at line 1298 of file NCBIStandalone.py.

01298 
01299     def ka_params_gap(self, line):
01300         x = line.split()
01301         self._dr.ka_params_gap = map(_safe_float, x)

Definition at line 1281 of file NCBIStandalone.py.

01281 
01282     def num_letters_in_database(self, line):
01283         letters, = _get_cols(
01284             line, (-1,), ncols=6, expected={2:"letters", 4:"database:"})
01285         self._dr.num_letters_in_database.append(_safe_int(letters))

Here is the call graph for this function:

Definition at line 1286 of file NCBIStandalone.py.

01286 
01287     def num_sequences_in_database(self, line):
01288         sequences, = _get_cols(
01289             line, (-1,), ncols=6, expected={2:"sequences", 4:"database:"})
01290         self._dr.num_sequences_in_database.append(_safe_int(sequences))

Here is the call graph for this function:

Definition at line 1276 of file NCBIStandalone.py.

01276 
01277     def posted_date(self, line):
01278         self._dr.posted_date.append(_re_search(
01279             r"Posted date:\s*(.+)$", line,
01280             "I could not find the posted date in line\n%s" % line))

Here is the call graph for this function:

Definition at line 1264 of file NCBIStandalone.py.


Member Data Documentation

Definition at line 1265 of file NCBIStandalone.py.


The documentation for this class was generated from the following file: