Jmol 12.0 adds aromatic searches for SMILES.
Also, of interest to some might be that Jmol 12.0.RC10 (
http://chemapps.stolaf.edu/jmol/docs/examples-11/Jmol-11.zip) adds a new
flavor of the FIND function:
print "CCCC".find("SMILES","C[C]")
> 2
That is, Jmol searched "CCCC" and found two occurances of "C[C]".
Notice that this is completely independent of the actual model loaded. At
some point I suppose we should get Jmol creating SMILES strings from models.
(Do people see that as important?). But you can also now do this:
print {*/1.2}.find("SMILES","[c]1[c][c][c][c][c]1")
and Jmol will report an array of atom sets showing exactly where that search
is. In this case, where there is a benzene ring. And if you want an exact
match, just don't use the brackets:
print {1.2}.find("SMILES","c1ccccc1")
will report "1" only if the second model in the first file really is
benzene.
Where this might be particularly interesting, I think, is that if the two
SMILES strings were produced by two different programs (or two different
users), then their equivalence will be shown by that result being "1". Say
you have a problem where you have an answer in mind that uses some valid
SMILES string. No longer any worry as to whether it is "canonical" or not.
I realize this is a bit of a stretch to include this capability in Jmol,
because it doesn't necessarily have anything to do with models, but it was
only a few lines of code, and will allow for some good testing of
Jmol/SMILES. In addition, the way it works is to produce a little
topological model from the first SMILES string and then search for the
second SMILES within that.
Bob
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users