Package CHEM :: Package Annotation :: Module BaseAnnotator :: Class TextFilePopulator
[hide private]
[frames] | no frames]

Class TextFilePopulator



BasePopulator --+
                |
               TextFilePopulator

Concrete implementaiton of BasePopulator. Iterates through objects, calculates annotations and outputs them to a file as a tab-delimited set of values.

First line of the file will be tab-delimited header line with the column names that the data would be inserted under.

Doesn't handle multi-line text values well yet.

Instance Methods [hide private]
 
__init__(self, outfile)
 
setUp(self)
First thing executed at beginning of run method.
 
populate(self, input, annotations, idAnnotations)
Primary method.

Inherited from BasePopulator: addAnnotator, clearAnnotators, handleItemError, handleLineError, run, tearDown

Method Details [hide private]

__init__(self, outfile)
(Constructor)

 
Overrides: BasePopulator.__init__

setUp(self)

 
First thing executed at beginning of run method. Default to extracting the list of data and ID column names.
Overrides: BasePopulator.setUp
(inherited documentation)

populate(self, input, annotations, idAnnotations)

 
Primary method. Writes out the annotations as a tab-delimited line to the outfile.
Overrides: BasePopulator.populate