|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.sss.search.MarkushGenerator
public class MarkushGenerator
Generates RgMolecule output that covers the specified targets
with the specified scaffold. The scaffold is a Molecule with
undefined R-atoms. The root structure of the generated RgMolecule
is this scaffold, the R-group definitions are added so that the target space would be
fully covered by the set of the enumerated structures (and typically contain a lot of
additional structures as well).
The implementation uses RGroupDecomposition to find the R-group definitions.
API usage examples:
query: the query molecule
targets: the target molecules
MarkushGenerator mg = new MarkushGenerator(); mg.setQuery(query); mg.setTargets(targets); // generate the RgMolecule that covers the targets RgMolecule rgmol = mg.generate(); // get the target array indexes of the targets that did not match the query int[] skipped = mg.getSkippedTargetIndexes();
RGroupDecomposition,
Decomposition| Field Summary | |
|---|---|
static java.lang.String |
NO_UNDEF_RGROUP
|
| Constructor Summary | |
|---|---|
MarkushGenerator()
Constructor. |
|
| Method Summary | |
|---|---|
RgMolecule |
generate()
Generates the RgMolecule with the specified scaffold
(see setQuery(chemaxon.struc.Molecule)) covering the specified targets
(see setTargets(chemaxon.struc.Molecule[])). |
Molecule |
getQuery()
Returns the query. |
MolSearchOptions |
getSearchOptions()
Returns the search options. |
int[] |
getSkippedTargetIndexes()
Returns the target array indexes of targets that have been skipped in the last RgMolecule generation in generate(). |
Molecule[] |
getTargets()
Returns the targets. |
void |
setQuery(Molecule query)
Sets the query. |
void |
setSearchOptions(SearchOptions options)
Copies all search parameters from options. |
void |
setStandardizer(Standardizer st,
boolean bq,
boolean bt)
Sets standardizer object of this MolSearch class, to be used for the query and target molecules, Chemical Terms configuration and re-standardization of query tautomers at tautomer searching. |
void |
setTargets(Molecule[] targets)
Sets the targets. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NO_UNDEF_RGROUP
| Constructor Detail |
|---|
public MarkushGenerator()
| Method Detail |
|---|
public void setSearchOptions(SearchOptions options)
options.
options - search options to copygetSearchOptions()public MolSearchOptions getSearchOptions()
RGroupDecomposition directly
(e.g.: getSearchOptions().setExactBondMatching(true);).
public void setStandardizer(Standardizer st,
boolean bq,
boolean bt)
st - Standardizer object. null means default (aromatization).
WARNING: Standardization that changes atom indexes is not supported!bq - if false, standardization is not done on query.
(Useful if query is already standardized.)bt - if false, standardization is not done on target.
(Useful if target is already standardized.)
public void setQuery(Molecule query)
throws chemaxon.sss.search.SearchException
RgMolecule.
The query should contain at least one undefined R-atom.
query - the query
chemaxon.sss.search.SearchException - if the query does not contain an undefined R-atompublic Molecule getQuery()
public void setTargets(Molecule[] targets)
RgMolecule will cover these targets by its enumerations.
targets - the targetspublic Molecule[] getTargets()
public RgMolecule generate()
throws chemaxon.sss.search.SearchException
RgMolecule with the specified scaffold
(see setQuery(chemaxon.struc.Molecule)) covering the specified targets
(see setTargets(chemaxon.struc.Molecule[])). The query and the targets
should be set beforehand. If some of the targets cannot be decomposed (because
there is not search hit) then the corresponding target array indexes are returned
in getSkippedTargetIndexes().
RgMolecule
chemaxon.sss.search.SearchException - on search errorgetSkippedTargetIndexes()public int[] getSkippedTargetIndexes()
RgMolecule generation in generate().
generate(),
or null if called before generate()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||