|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.sss.search.MarkushTagger
public class MarkushTagger
Tags Markush structure by the coverage data of example structures. Structure searches are performed with the example structures as queries and statistics about the covered Markush features is stored.
| Field Summary | |
|---|---|
static int |
COLORING_GRADUAL
|
static int |
COLORING_NONE
|
static int |
COLORING_SOLID
|
| Constructor Summary | |
|---|---|
MarkushTagger()
Constructor. |
|
| Method Summary | |
|---|---|
java.util.Hashtable<MarkushFeature,int[]> |
getFeatureCoverageTable()
Returns the feature coverage table. |
java.util.Hashtable<MarkushFeature,int[]> |
getFeatureTable()
Returns the Markush feature table of the Markush structure. |
static java.util.logging.Level |
getLoggingLevel()
Returns the logging level. |
Molecule |
getMarkush()
Returns the Markush structure. |
MolSearchOptions |
getSearchOptions()
Returns the search options. |
static java.util.Hashtable<MarkushFeature,int[]> |
restore(java.lang.String tableString)
Restores the feature table returned by getFeatureTable()
or the feature coverage table returned by getFeatureCoverageTable()
from its String representation. |
void |
setAllHits(boolean allHits)
Sets all-hits mode: true if all hits to be processed,
false if first hit only. |
void |
setColor(java.awt.Color color)
Sets the color for hit coverage coloring on the Markush structure. |
void |
setColoringStyle(int coloringStyle)
Sets the coloring style. |
void |
setExpandHomology(boolean expandHomology)
Sets homology expansion mode: true if homology groups
should be replaced by matching R-groups. |
static void |
setLoggingLevel(java.util.logging.Level level)
Sets the logging level. |
void |
setMarkush(Molecule markush)
Sets the Markush structure. |
void |
setQueries(Molecule[] queries)
Sets the query (example) molecules. |
void |
setSearchOptions(MolSearchOptions options)
Sets the search options. |
static java.lang.String |
store(java.util.Hashtable<MarkushFeature,int[]> table)
Converts the feature table returned by getFeatureTable()
or the feature coverage table returned by getFeatureCoverageTable()
to String. |
void |
tag()
Performs the searches, stores Markush feature coverage data, optionally colors the Markush structure according to hit coverage. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int COLORING_NONE
public static final int COLORING_SOLID
public static final int COLORING_GRADUAL
| Constructor Detail |
|---|
public MarkushTagger()
| Method Detail |
|---|
public static void setLoggingLevel(java.util.logging.Level level)
level - the new levelpublic static java.util.logging.Level getLoggingLevel()
public void setMarkush(Molecule markush)
markush - the Markush structurepublic void setQueries(Molecule[] queries)
queries - the query moleculespublic void setSearchOptions(MolSearchOptions options)
options - the search optionspublic MolSearchOptions getSearchOptions()
public void setAllHits(boolean allHits)
true if all hits to be processed,
false if first hit only. Default: false.
allHits - true if all hits to be processedpublic void setExpandHomology(boolean expandHomology)
true if homology groups
should be replaced by matching R-groups. Default: true.
expandHomology - true if homology groups
should be replaced by matching R-groupspublic void setColoringStyle(int coloringStyle)
coloringStyle - the coloring style, possible values:
COLORING_NONE (default)COLORING_SOLIDCOLORING_GRADUALsetExpandHomology(boolean),
setColor(java.awt.Color)public void setColor(java.awt.Color color)
COLORING_NONE.
Default: Color.RED
setExpandHomology(boolean),
setColoringStyle(int)public Molecule getMarkush()
setExpandHomology(boolean)).
The feature and feature coverage tables returned in
getFeatureTable() and getFeatureCoverageTable()
will refer to this Markush structure.
public java.util.Hashtable<MarkushFeature,int[]> getFeatureTable()
tag().
The table maps Markush feature keys identifying the feature
to an array of possible expansion values.
If the queries match homology groups then the feature table
refers to an extended Markush structure where homologies are
replaced by R-groups with definitions generated from the
matching parts of the queries. The extended Markush is returned by
getMarkush().
The expansion values by feature type are:
MarkushFeature.RGROUP: {0, 1, 2, ..., R-group member count - 1}
(the R-group member indexes)MarkushFeature.LINKNODE: {min, min+1, ..., max}
(the link node repetitions)MarkushFeature.REPUNIT: {r1, r2, ..., rN}
(the repeating unit repetition range members)MarkushFeature.ATOMLIST: {atno1, atno2, ..., atnoN}
(the atno-s in the atom list)MarkushFeature.BONDLIST: {type1, type2, ..., typeN}
(the bond types in the bond list)MarkushFeature.MULTIBOND: {index1, index2, ..., indexN}
(the atom indexes in the multicenter group)
tag(),
getFeatureCoverageTable()public java.util.Hashtable<MarkushFeature,int[]> getFeatureCoverageTable()
getFeatureTable().
If the queries match homology groups then the feature coverage table
refers to an extended Markush structure where homologies are
replaced by R-groups with definitions generated from the
matching parts of the queries. The extended Markush is returned by
getMarkush().
tag(),
getFeatureTable(),
getMarkush()
public static java.lang.String store(java.util.Hashtable<MarkushFeature,int[]> table)
throws java.io.IOException
getFeatureTable()
or the feature coverage table returned by getFeatureCoverageTable()
to String.
The string representation is the base64-encoded serialization of the table.
table - the feature table or the feature coverage table
java.io.IOExceptionrestore(java.lang.String),
getFeatureTable(),
getFeatureCoverageTable()
public static java.util.Hashtable<MarkushFeature,int[]> restore(java.lang.String tableString)
throws java.io.IOException,
java.lang.ClassNotFoundException
getFeatureTable()
or the feature coverage table returned by getFeatureCoverageTable()
from its String representation.
The string representation is the base64-encoded serialization of the table.
tableString - the base64-encoded serialization of the table
java.io.IOException
java.lang.ClassNotFoundExceptionstore(java.util.Hashtable),
getFeatureTable(),
getFeatureCoverageTable()
public void tag()
throws chemaxon.sss.search.SearchException,
chemaxon.enumeration.supergraph.SupergraphException
getFeatureTable(), the table of
int[] elements representing the corresponding occurrences
is returned in getFeatureCoverageTable().
chemaxon.sss.search.SearchException - on search error
chemaxon.enumeration.supergraph.SupergraphException - on supergraph errorgetFeatureTable(),
getFeatureCoverageTable()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||