Package chemaxon.util
Class HitDisplayUtil
java.lang.Object
chemaxon.util.HitDisplayUtil
Class providing some utility tools for displaying hit results
with hit coloring, alignment, partial clean, etc.
- Since:
- Marvin 5.1
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcolor(Molecule query, Molecule target, int[] hit, HitColoringAndAlignmentOptions options) Performs hit coloring on the specified structure.static voidcolor(Molecule substructure, Molecule molToColor, HitColoringAndAlignmentOptions options) Performs hit coloring on the specified structure.static MoleculecolorHit(Molecule substructure, Molecule target, int[] hit, HitColoringAndAlignmentOptions options) Returns the colored copy of the specified target structure, the original target is kept unchanged.static MoleculegetScaffoldOrientatedHit(Molecule query, Molecule target, int[] hit) Deprecated, for removal: This API element is subject to removal in a future version.static MoleculegetScaffoldOrientatedHit(Molecule query, Molecule target, int[][] groupHit) Deprecated, for removal: This API element is subject to removal in a future version.UseMolAligner.align(Molecule, Molecule, int[][])instead
-
Field Details
-
PROP_ALIGNHIT
Atom property to store "align hit" option.- See Also:
-
-
Constructor Details
-
HitDisplayUtil
public HitDisplayUtil()
-
-
Method Details
-
getScaffoldOrientatedHit
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public static Molecule getScaffoldOrientatedHit(Molecule query, Molecule target, int[] hit) Deprecated, for removal: This API element is subject to removal in a future version.UseMolAligner.align(Molecule, Molecule, int[])insteadReturns an aligned (rotated) version of molToAlign that contains scaffold - possibly in the same position or optimally close to it.- Parameters:
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)- Returns:
- aligned molecule
-
getScaffoldOrientatedHit
@Deprecated(forRemoval=true) @SubjectToRemoval(date=JUL_01_2025) public static Molecule getScaffoldOrientatedHit(Molecule query, Molecule target, int[][] groupHit) Deprecated, for removal: This API element is subject to removal in a future version.UseMolAligner.align(Molecule, Molecule, int[][])insteadReturns an aligned (rotated) version of molToAlign that contains scaffold - possibly in the same position or optimally close to it.- Parameters:
query- scaffold baseline for alignmenttarget- molToAlign molecule that should be aligned to scaffoldgroupHit- a map of the atom ids in the query and the target returned by a search. Its size must be equal to scaffold size.- Returns:
- aligned molecule
-
colorHit
public static Molecule colorHit(Molecule substructure, Molecule target, int[] hit, HitColoringAndAlignmentOptions options) Returns the colored copy of the specified target structure, the original target is kept unchanged.- Parameters:
substructure- the structure taken as a template for coloringtarget- the structure whose colored copy is returnedhit- maps atoms of the template to atoms in the colored structureoptions- coloring options- Returns:
- the colored molecule
-
color
public static void color(Molecule substructure, Molecule molToColor, HitColoringAndAlignmentOptions options) Performs hit coloring on the specified structure. Only for internal use!- Parameters:
substructure- the structure taken as a template for coloringmolToColor- the structure to be coloredoptions- coloring options
-
color
public static void color(Molecule query, Molecule target, int[] hit, HitColoringAndAlignmentOptions options) Performs hit coloring on the specified structure. Only for internal use!- Parameters:
query- the query structure (template for coloring)target- the target structure to be coloredhit- maps atoms of the template to atoms in the colored structure. This array can be an extended single hit.options- coloring options
-
MolAligner.align(Molecule, Molecule, int[])instead