Hello
The -hlthick
or -hlcolor options are used to highlight structures. You can use smiles (see example below) or molfile with highlighted atoms and bonds (please see the attached highlighting.mol).
To create highlighted structure e.g. with a matched query, you can use the Indigo toolkit
http://lifescience.opensource.epam.com/indigo/api/index.html#example-2-getting-the-highlighted-target-moleculeexample:
mol1 = indigo.loadQueryMolecule("CN")
mol2 = indigo.loadMolecule("P(=O)(O[H])(O[H])OC([H])([H])C1=C([H])N=C(C([H])([H])[H])N=C1N([H])[H]")
mol2.foldHydrogens()
m = indigo.substructureMatcher(mol2).match(mol1)
hi = m.highlightedTarget()
print(hi.smiles())
Output:
P(OCC1C(N)=NC(C)=NC=1)(O)(O)=O |ha:4,5,hb:4|
Thanks
Alexander