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

Class CanSmilesAnnotator



BaseAnnotator.BaseAnnotator --+    
                              |    
  BaseAnnotator.SingleAnnotator --+
                                  |
                                 CanSmilesAnnotator

Generate the canonical smiles for the OEMolBase
>>> annotator = CanSmilesAnnotator();
>>> print callBySmiles( annotator, "c1ccccc1O")[0];
c1ccc(cc1)O
>>> print callBySmiles( annotator, "C1=NC=CC=C1")[0];
c1ccncc1
>>> print callBySmiles( annotator, "C(O)C")[0];
CCO
>>> print callBySmiles( annotator, "C1CCCC1")[0];
C1CCCC1
>>> print callBySmiles( annotator, "C[C@H](N)O")[0];
CC(N)O
>>> print callBySmiles( annotator, "C[C@@H](N)O")[0];
CC(N)O


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

Inherited from BaseAnnotator.SingleAnnotator: __call__, __init__, columnName

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

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)

values(self, input)

 
Return an ordered sequence of the values this multiple annotator will calculate off of the input. The order must correspond to the column list returned by the keys method so the caller can know which element is which. The result should be a subset of the allValues method as specified by the specificCols parameter to the constructor or specifyColumns method.
Overrides: BaseAnnotator.BaseAnnotator.values
(inherited documentation)