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

Class ChemaxonLogPAnnotator



BaseAnnotator.BaseAnnotator --+    
                              |    
  BaseAnnotator.SingleAnnotator --+
                                  |
                                 ChemaxonLogPAnnotator

Estimate the chemical's logP octanol / water partition coefficient

http://www.chemaxon.com/marvin/chemaxon/marvin/help/logPlogD.html
>>> from openeye.oechem import OEGraphMol, OEParseSmiles;
>>> annotator = ChemaxonLogPAnnotator();
>>> smilesList = [];
>>> smilesList.append("C1OC(C)NCO1");
>>> smilesList.append("C1OCNCO1");
>>> smilesList.append("C1O[C@H](C)NCO1");
>>> smilesList.append("COCN(C)C");
>>> smilesList.append("OC(C)N");
>>> smilesList.append("OC=C");
>>> smilesList.append("c1ccccc1O");
>>> smilesList.append("c1ccccc1c2ccccc2");
>>> for smiles in smilesList:
...     print "%s %.2f" % (smiles, callBySmiles(annotator, smiles)[0] );
...
C1OC(C)NCO1 0.40
C1OCNCO1 0.39
C1O[C@H](C)NCO1 0.40
COCN(C)C 0.36
OC(C)N -0.68
OC=C 0.33
c1ccccc1O 1.76
c1ccccc1c2ccccc2 3.73


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)