User f5e6ccf034
04-06-2008 01:49:23
What is the relationship between methods like setExactFragment, setSubgraphSearch, setSuperstructureSearch etc on the one hand and setSearchType on the other: doesn't, e.g., setSearchType(SUPERSTRUCTURE) render setSuperstructureSearch unnecessary?
Generally speaking, assuming a JChemSearch search engine was set up in xyz fashion, how should a MolSearchOptions object be set up so that if it is passed to HitDisplayTool the latter will flag the same subgraph that JChemSearch had recognized and not something else? I see that JChemSearch has a handy getSearchOptions method but unfortunately it returns a JChemSearchOptions, which extends SearchOptions directly, not MolSearchOptions. Will it be enough to do:
Or should I use JChemSearch.getHitsAsMolecules instead, to obviate these difficulties?
Thanks
Generally speaking, assuming a JChemSearch search engine was set up in xyz fashion, how should a MolSearchOptions object be set up so that if it is passed to HitDisplayTool the latter will flag the same subgraph that JChemSearch had recognized and not something else? I see that JChemSearch has a handy getSearchOptions method but unfortunately it returns a JChemSearchOptions, which extends SearchOptions directly, not MolSearchOptions. Will it be enough to do:
Code: |
JChemSearch jcs = ...; MolSearchOptions mso = new MolSearchOptions(); mso.clonecopy(jcs.getSearchOptions()); // use mso |
Or should I use JChemSearch.getHitsAsMolecules instead, to obviate these difficulties?
Thanks