Package CHEM :: Package Annotation :: Module ChemicalAnnotators :: Class MolecularWeightAnnotator
[hide private]
[frames] | no frames]

Class MolecularWeightAnnotator



BaseAnnotator.BaseAnnotator --+    
                              |    
  BaseAnnotator.SingleAnnotator --+
                                  |
                                 MolecularWeightAnnotator

Calculate the OEMolBase's weight in daltons.
>>> annotator = MolecularWeightAnnotator();
>>> print "%.5f" % callBySmiles( annotator, "c1ccccc1O")[0];
94.11124
>>> print "%.5f" % callBySmiles( annotator, "OCN")[0];
47.05654


Instance Methods [hide private]
 
allColumns(self)
Return an ordered sequence of all the column names that this multiple annotator can generate values for.
 
allValues(self, input)
Return an ordered sequence of all the values this multiple annotator can calculate off of the input.

Inherited from BaseAnnotator.SingleAnnotator: __call__, __init__, columnName

Inherited from BaseAnnotator.BaseAnnotator: annotateDict, iteritems, iterkeys, itervalues, keys, specifyColumns, values

Class Variables [hide private]

Inherited from BaseAnnotator.BaseAnnotator: specificCols

Method Details [hide private]

allColumns(self)

 

Return an ordered sequence of all the column names that this multiple annotator can generate values for.

To facilitate ease of filtering with case-insensitivity, all of the values returned by this method should be lowercase.
Overrides: BaseAnnotator.BaseAnnotator.allColumns
(inherited documentation)

allValues(self, input)

 
Return an ordered sequence of all the values this multiple annotator can calculate off of the input. The order must correspond to the column list returned by allColumns so the caller can know which element is which.
Overrides: BaseAnnotator.BaseAnnotator.allValues
(inherited documentation)