CurlySMILES class Notation: method set_client_ann

Method set_client_ann belongs to class Notation, the core class for managing a CurlySMILES notation. This methods provides a Notation object with a reference to a dictionary which contains annotation code that should replace identifiers occurring as placeholder annotations in a user notations.

Module file: csm_notation.py
Method: set_client_ann(dictClientAnn)
Argument: dictClientAnn,
dictionary with sKey/sValue pairs, of which sKey is an annotation identifier and sValue is the corresponding annotation code supposed to replace the identifier when occurring as an atom-anchored or component-anchored annotation in a CurlySMILES notation.
Return: None
Example: dictClientAnn = {
123'$*Lig1': '+Lc=N{4}',
123'$*Lig2': '+Lc=[C-]{!I}#N{4}',
123'$*Lig3': '+Lc=FP{!I}(F)F{4}'
}


When a user notation is turned into a work notation during preprocessing in method parse, a user notation such as
123 sUserNotation = '[Os+2]{$*Lig3}'
will become
123 sWorkNotation = '[Os+2]{+Lc=FP{!I}(F)F{4}}'
assuming the call
123 oNotation.set_client_ann(dictClientAnn)
has been done prior to the call
123 oNotation.parse(sUserNotation).


Please, email comments and suggestions to axeleratio@yahoo.com
Custom Search