Transformations with atom lists

User 870ab5b546

07-01-2009 23:47:20

Consider this transformation:





Code:
[#7,#15,#33;X3,X4;0:1]=[#34,#16,#8,#7,#6:2]>>[#7,#15,#33;+:1]-[#34,#16,#8,#7,#6;-:2]






For atom 2, I want the heavier atoms to take precedent over the lighter ones. So, for example, I want CN=N(C)=O to be converted to CN=[N+](C)[O-], but it is being converted to C[N-][N+](C)=O. Is there a way to enforce an order of operations in the atom list short of listing the transformation multiple times, each with a different atom 2?





And another question. If I list multiple transformations such as the one above in a single Standardizer file, how many transformations would I have to have before Standardizer became less efficient than simply going through the molecule bond by bond and looking for the pattern manually?

ChemAxon d76e6e95eb

08-01-2009 14:52:36

The simplest solution currently is to create a queue of separate specific transforms. I do not expect any serious slowdown even if you have some dozens of transforms.





Regarding related future plans, we will add a new Chemical Terms function with a parameter list of functional groups, that will match those functional groups in their listed order.