Package CHEM :: Package DB :: Module ReactDBPopulator :: Class ReactDBPopulator
[hide private]
[frames] | no frames]

Class ReactDBPopulator



BaseDBPopulator.BaseDBPopulator --+
                                  |
                                 ReactDBPopulator

Script to read SDF or other (reaction) molecule files and insert into the ReactDB as specific (level 3) reaction_steps.

The core structure is in the run method, leaving most of the details to independent processor and iterator preparer objects for each table.

Instance Methods [hide private]
 
__init__(self)
Constructor.
 
loadOptions(self, options)
Load any relevant options from the command-line parser
 
run(self)
Primary method that traverses through the database schema, populating it with the input data as it goes.
 
__mainIteration(self, reaction_synthesis, reaction_step, reaction_file)
Primary execution code done once per iteration

Inherited from BaseDBPopulator.BaseDBPopulator: addProcessor, clearProcessors, prepareIterator, processObject, setIteratorPreparer

Class Variables [hide private]
  skipErrors = False
  startIndex = <CHEM.DB.rdb.search.NameRxnPatternMatchingModel.S...
  endIndex = <CHEM.DB.rdb.search.NameRxnPatternMatchingModel.Sea...

Inherited from BaseDBPopulator.BaseDBPopulator: preparerDict, processorsDict

Method Details [hide private]

__init__(self)
(Constructor)

 
Constructor. Initialize processor object dictionaries to empty, and expected processor lists to empty lists.
Overrides: BaseDBPopulator.BaseDBPopulator.__init__

loadOptions(self, options)

 
Load any relevant options from the command-line parser
Overrides: BaseDBPopulator.BaseDBPopulator.loadOptions

run(self)

 
Primary method that traverses through the database schema, populating it with the input data as it goes. High level function. Details are left to independent processor objects.
Overrides: BaseDBPopulator.BaseDBPopulator.run

Class Variable Details [hide private]

startIndex

Value:
None

endIndex

Value:
None