deprecated SearchOptions and what's new ...

User 55ffa2f197

30-08-2013 12:56:14

Hi, i am using following to instantiate the MolSearch obj, but some of these are marked as depreacted. I am using JChem 5.11.4 library. What is the contemporary method to replace this,


Thanks


Dong


MolSearch mss = new MolSearch();
final MolSearchOptions msp = new MolSearchOptions();
msp.setSearchType(SearchOptions.SUBSTRUCTURE);
mss.setSearchOptions(msp);
mss.setQuery("[NR][CR](=O)[CR]");
mss.setTarget(molecule);

ChemAxon 25dcd765a3

30-08-2013 15:25:53

I have moved your question to the proper topic group. Jcb team will answer you soon.

ChemAxon 4a2fc68cd1

02-09-2013 11:13:44

Hi Dong,


You should specify the search type in the constructor of the search options object, i.e. the 2nd and 3rd lines should be replaced with:


final MolSearchOptions msp = new MolSearchOptions(SearchOptions.SUBSTRUCTURE);

Regards,
Peter