|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.util.HitDisplayUtil
public class HitDisplayUtil
Class providing some utility tools for displaying hit results with hit coloring, alignment, partial clean, etc.
| Field Summary | |
|---|---|
static java.lang.String |
PROP_ALIGNHIT
Atom property to store "align hit" option. |
static int |
SEQ_RESTORE
Bond set sequence constant to be set if bond color is to be reset. |
| Constructor Summary | |
|---|---|
HitDisplayUtil()
|
|
| Method Summary | |
|---|---|
static void |
color(Molecule substructure,
Molecule molToColor,
HitColoringAndAlignmentOptions options)
Only for internal use! |
static void |
color(Molecule substructure,
Molecule molToColor,
int[] hit,
HitColoringAndAlignmentOptions options)
Performs hit coloring on the specified structure. |
protected static java.util.ArrayList<MolBond> |
getNonHitBonds(Molecule query,
Molecule target,
int[] hit)
Returns the bonds of the target molecule that should not be colored in hit highlighting. |
static Molecule |
getScaffoldOrientatedHit(Molecule scaffold,
Molecule molToAlign)
Only for internal use! |
static Molecule |
getScaffoldOrientatedHit(Molecule query,
Molecule target,
int[] hit)
Returns an aligned (rotated) version of molToAlign that contains scaffold - possibly in the same position or optimally close to it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SEQ_RESTORE
public static final java.lang.String PROP_ALIGNHIT
| Constructor Detail |
|---|
public HitDisplayUtil()
| Method Detail |
|---|
public static Molecule getScaffoldOrientatedHit(Molecule scaffold,
Molecule molToAlign)
scaffold - base for alignmentmolToAlign - molecule that should be aligned to scaffold
public static Molecule getScaffoldOrientatedHit(Molecule query,
Molecule target,
int[] hit)
query - scaffold baseline for alignmenttarget - molToAlign molecule that should be aligned to scaffoldhit - ordered array (its size must be equal to scaffold size),
describes matchings between scaffold and molToAlign atom indices
(e.g. scaffold[2] --> molToAlign[5] ==> hit[2] = 5)
public static void color(Molecule substructure,
Molecule molToColor,
HitColoringAndAlignmentOptions options)
substructure - the structure taken as a template for coloringmolToColor - the structure to be coloredoptions - coloring options
public static void color(Molecule substructure,
Molecule molToColor,
int[] hit,
HitColoringAndAlignmentOptions options)
substructure - the structure taken as a template for coloringmolToColor - the structure to be coloredhit - maps atoms of the template to atoms in the colored structureoptions - coloring options
protected static java.util.ArrayList<MolBond> getNonHitBonds(Molecule query,
Molecule target,
int[] hit)
setMultiAtomHitColor(Molecule, Molecule, int[]).
query - the query Moleculetarget - the target Moleculehit - the hit list
ArrayList contains MolBond
objects.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||