Package chemaxon.marvin.alignment
Interface PairwiseComparison
- All Known Implementing Classes:
PairwiseAlignment
,PairwiseSimilarity3D
This interface designed for comparing two molecules in 3D by various overlay
methodologies. One of molecules is called the query and the other is the
target. The comparison results in the best overlay: the orientation and the
conformation. The shape Tanimoto and the overlay score may be retrieved.
Example usage:
PairwiseComparison pc = new PairwiseAlignment(); pc.setQueryRigidForced(true); pc.setTargetRigidForced(false); pc.setCount(4); pc.setQuery(Molecule query); double score = pc.similarity(Molecule target); double tanimoto = pc.getShapeTanimoto();
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addNodeColorWeight
(int t1, int t2, double w) After the similarity calculation the final orientations and conformations can be retrieved as a single molecule.double
void
void
setCount
(int count) void
void
void
setQuery
(AlignmentMolecule query) void
void
setQueryRigidForced
(boolean forced) Set this molecule to be rigid in the input conformation even if it contains rotatable bondsvoid
setTargetRigidForced
(boolean forced) Set this molecule to be rigid in the input conformation even if it contains rotatable bondsdouble
similarity
(AlignmentMolecule target) double
similarity
(Molecule target) Calculates the 3D similarity between the previously set query and the target.
-
Method Details
-
setQuery
- Throws:
AlignmentException
-
similarity
Calculates the 3D similarity between the previously set query and the target.- Parameters:
target
- target to calculate similarity- Returns:
- the similarity value.
- Throws:
AlignmentException
-
setQuery
- Throws:
AlignmentException
-
similarity
- Throws:
AlignmentException
-
getAlignedMoleculesAsFragments
Molecule getAlignedMoleculesAsFragments()After the similarity calculation the final orientations and conformations can be retrieved as a single molecule.- Returns:
- the aligned molecules.
-
getAlignedTarget
Molecule getAlignedTarget()- Returns:
- the target molecule in the final orientation and conformation.
-
getAlignedQuery
Molecule getAlignedQuery() -
removeAllMolecules
void removeAllMolecules() -
setProgressBar
-
setQueryRigidForced
void setQueryRigidForced(boolean forced) Set this molecule to be rigid in the input conformation even if it contains rotatable bonds- Parameters:
forced
- if true than rigid.
-
setTargetRigidForced
void setTargetRigidForced(boolean forced) Set this molecule to be rigid in the input conformation even if it contains rotatable bonds- Parameters:
forced
- if true than rigid.
-
addNodeColorWeight
void addNodeColorWeight(int t1, int t2, double w) -
getShapeTanimoto
- Throws:
AlignmentException
-
setLicenseEnvironment
-
setCount
void setCount(int count)
-