User f05f6b8c05
28-05-2014 23:50:08
Hi,
For attached mol files, structures seems to be the same; however, MolSearch shown below does not find them to be the same. They are found the same if we use StandardizedMolSearch or if we set Tautomer search. Can you clarify why MolSearch below does not find these structures the same?
We are using JChem Linux API version 5.12.4.
Thank you for any guidance.
Andrew
MolImporter mi = new MolImporter(f1);
Molecule mol1 = mi.read();
mi.close();
MolImporter mi2 = new MolImporter(f2);
Molecule mol2 = mi2.read();
mi2.close();
//StandardizedMolSearch s = new StandardizedMolSearch();
MolSearch s = new MolSearch();
MolSearchOptions so = new MolSearchOptions(SearchConstants.DUPLICATE);
so.setQueryAbsoluteStereo(true);
so.setChargeMatching(SearchConstants.CHARGE_MATCHING_EXACT);
so.setDoubleBondStereoMatchingMode(StereoConstants.DBS_ALL);
so.setImplicitHMatching(SearchConstants.IMPLICIT_H_MATCHING_ENABLED);
so.setExactBondMatching(true);
so.setStereoSearchType(SearchConstants.STEREO_EXACT);
//so.setTautomerSearch(SearchConstants.TAUTOMER_SEARCH_ON);
so.setTautomerSearch(SearchConstants.TAUTOMER_SEARCH_OFF);
s.setSearchOptions(so);
s.setQuery(mol2);
s.setTarget(mol1);
int[][] hits = null;
hits = s.findAll();
if (hits == null)
System.out.println("No hits");
else {
System.out.println("Hit");
}