|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.sss.search.MCS
MCES instead
public class MCS
The MCS class find the largest substructure common to two molecular structures.
It supports various options when the two molecules' graphs are matched against each other: it can either ignore or
take atom type, bond type, charge, hybridization into account.
The present implementation searches for the connected MCES (maximum common edge subgraph).
The class provides a simple command-line interface too. It takes two molecular structures and calculates (and outputs) their MCES.
As of JChem 5.4, a new class MCES is introduced with almost the same functionality as
this class, but it implements a more powerful and reliable algorithm.
| Field Summary | |
|---|---|
static int |
DEFAULT_MIN_COMMON_SIZE
Deprecated. default minimum size of common structures, do not find smaller than this |
static int |
MODE_EXACT
Deprecated. Exact MCS search mode. |
static int |
MODE_FAST
Deprecated. A well balanced compromise between MODE_EXACT and MODE_TURBO. |
static int |
MODE_TURBO
Deprecated. Fastest search mode. |
| Constructor Summary | |
|---|---|
MCS()
Deprecated. Creates a new object for common structure search. |
|
| Method Summary | |
|---|---|
boolean |
findFirst()
Deprecated. since 5.4 |
boolean |
findNext()
Deprecated. since 5.4 |
int[] |
getResult()
Deprecated. Gets the result of an MCS/MCES/SSS search. |
Molecule |
getResultAsMolecule()
Deprecated. Gets the MCS/MCES as a structure represented by a Molecules
object. |
java.lang.String |
getResultAsSmiles(boolean unique)
Deprecated. Gets the MCS/MCES as structure represented as SMILES. |
int[] |
getResultQueryAtoms()
Deprecated. Gets query atoms that are part of the MCS/MCES. |
MolBond[] |
getResultQueryBonds()
Deprecated. Gets bonds of the query structure that are part of the MCS/MCES found. |
int |
getResultSize()
Deprecated. Gets the size (number of atoms) of the MCS/MCES (and SSS) found. |
int[] |
getResultTargetAtoms()
Deprecated. Gets target atoms that are part of the MCS/MCES. |
MolBond[] |
getResultTargetBonds()
Deprecated. Gets bonds of the target structure that are part of the MCS/MCES found. |
boolean |
isLicensed()
Deprecated. Returns information about the licensing of the product. |
boolean |
search()
Deprecated. Performs graph matching. |
void |
setDontBreakRingBonds(boolean dontBreakRingBond)
Deprecated. since 5.4 |
void |
setFastSearch(boolean fastSearch)
Deprecated. use setMode(MODE_TURBO) instead |
void |
setIgnoreAtomType(boolean ignore)
Deprecated. Sets atom type matching mode. |
void |
setIgnoreBondType(boolean ignore)
Deprecated. Sets bond type matching mode. |
void |
setIgnoreCharge(boolean ignore)
Deprecated. Sets atom formal charge matching mode. |
void |
setIgnoreHybridization(boolean ignore)
Deprecated. Sets atom hybridization matching mode. |
void |
setIgnoreIsotopes(boolean ignore)
Deprecated. Sets isotope matching mode. |
void |
setIgnoreQueryProperties(boolean ignore)
Deprecated. since 5.0 |
void |
setLicenseEnvironment(java.lang.String env)
Deprecated. Sets the license environment. |
void |
setMCESMode(boolean mcesMode)
Deprecated. MCES is the only structure matching mode supported by the MCS class from version 5.0. |
void |
setMCSMode(boolean mcsMode)
Deprecated. Strict MCS (vs. MCES) is not available from version 5.0 |
void |
setMinimumCommonSize(int minMCSsize)
Deprecated. Sets the minimum required size of the MCS found. |
void |
setMode(int mcsMode)
Deprecated. since 5.4 |
void |
setMolecules(Molecule query,
Molecule target)
Deprecated. Sets the two molecular structure graphs to be matched. |
void |
setQuery(Molecule query)
Deprecated. Sets the query molecule. |
void |
setSSSMode(boolean sssMode)
Deprecated. Substructure search is not supported by MCS form version 5.0 |
void |
setTarget(Molecule target)
Deprecated. Sets the target molecule. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_MIN_COMMON_SIZE
public static final int MODE_EXACT
public static final int MODE_TURBO
public static final int MODE_FAST
MODE_EXACT and MODE_TURBO.
| Constructor Detail |
|---|
public MCS()
| Method Detail |
|---|
public boolean isLicensed()
isLicensed in interface chemaxon.license.Licensablepublic void setLicenseEnvironment(java.lang.String env)
setLicenseEnvironment in interface chemaxon.license.Licensable
public void setMolecules(Molecule query,
Molecule target)
query - query moleculetarget - target moleculepublic void setQuery(Molecule query)
query - query moleculepublic void setTarget(Molecule target)
target - target moleculepublic void setMinimumCommonSize(int minMCSsize)
minMCSsize - minimum size of MCSpublic void setIgnoreAtomType(boolean ignore)
ignore - ignore atom type (true) or take it into account (false)public void setIgnoreBondType(boolean ignore)
ignore - ignore bond type (true) or take it into account (false)public void setIgnoreCharge(boolean ignore)
ignore - ignore atom charge (true) or take it into account (false)public void setIgnoreHybridization(boolean ignore)
ignore - ignore atom hybridization (true) or take it into account (false)public void setIgnoreIsotopes(boolean ignore)
ignore - Ignore isotope checking (true) or take them into account (false).public void setIgnoreQueryProperties(boolean ignore)
public void setDontBreakRingBonds(boolean dontBreakRingBond)
public void setMCSMode(boolean mcsMode)
mcsMode - search for maximum common subgraphpublic void setMCESMode(boolean mcesMode)
mcesMode - search for maximum common edge subgraphpublic void setSSSMode(boolean sssMode)
sssMode - substructure searchpublic void setMode(int mcsMode)
MODE_EXACT - exhaustive searchMODE_FAST - fester search allowing heuristic pruning, optimum solution is not guaranteed
to be found but it's very likelyMODE_TURBO - heuristic search, which is the fastest but there are cases when optimum solution
is not found
mcsMode - search strategy for maximum common substructurepublic void setFastSearch(boolean fastSearch)
setMode(MODE_TURBO) instead
setFastSearch( false ) which is the default anyway.
fastSearch - fast or normal search speedpublic boolean search()
public boolean findFirst()
search() except that it allows the
subsequent call of findNext().
public boolean findNext()
findFirst().
public int[] getResult()
public int getResultSize()
public java.lang.String getResultAsSmiles(boolean unique)
unique - indicates if unique smiles are required to be returned
public Molecule getResultAsMolecule()
Molecules
object.
Moleculepublic int[] getResultQueryAtoms()
public int[] getResultTargetAtoms()
public MolBond[] getResultQueryBonds()
public MolBond[] getResultTargetBonds()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||