Script to read SDF or other molecule files and insert into the ChemDB
non-redundantly.
The core structure is in the run method, leaving most of the details
to independent processor and iterator preparer objects for each table.
Standard ones are included in this module, but additional processors can
be created and added to this DBPopulator object to accumulate the steps
done for molecule curation / processing.
|
__init__(self,
sourceAbbrev=None,
external_id_tag=None,
inputFile=None,
autoCommit=False,
skipErrors=False,
startIndex=None,
endIndex=None)
Constructor. |
|
|
|
|
|
setoptions(self,
options)
Load any relevant options from the command-line parser |
|
|
|
setup(self)
Responsible setting up all of the processors, iterators, etc. |
|
|
|
run(self)
Primary method that traverses through the database schema,
populating it with the input data as it goes. |
|
|
|
__mainIteration(self,
source,
chemicalmix)
Primary execution code done once per iteration |
|
|
Inherited from BaseDBPopulator.BaseDBPopulator :
addProcessor ,
clearProcessors ,
loadOptions ,
prepareIterator ,
processObject ,
setIteratorPreparer
|