|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.util.MolAligner
public final class MolAligner
Tool for aligning molecules
| Nested Class Summary | |
|---|---|
class |
MolAligner.AlignmentResult
|
| Field Summary | |
|---|---|
double[][] |
fragCenter
Rotation center - a double[] for each fragment |
| Constructor Summary | |
|---|---|
MolAligner()
Creates a new instance of MolAligner |
|
| Method Summary | |
|---|---|
double |
align(Molecule mol,
int[] indexes)
Alignes (rotates) a specified molecule to the pattern molecule in 2D according to the specified atom pairs. |
MolAligner.AlignmentResult |
calculate(int[] indexes)
|
static void |
main(java.lang.String[] args)
For testing purposes. |
void |
rotate(MolAligner.AlignmentResult alignment)
Rotates the target structure according to the specified alignment. 2D target will be set to 3D if query was 3D. |
void |
setPatternMolecule(Molecule mol)
Sets the molecule that will be used as a pattern for alignment. |
void |
setTargetMolecule(Molecule mol)
Sets the molecule to rotate. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public double[][] fragCenter
| Constructor Detail |
|---|
public MolAligner()
| Method Detail |
|---|
public void setPatternMolecule(Molecule mol)
public void setTargetMolecule(Molecule mol)
mol - the molecle to rotate
public double align(Molecule mol,
int[] indexes)
throws java.lang.IllegalArgumentException
mol - the molecule to be alignedindexes - the atom indexes of the pattern in the order of the
atoms of the molecule to be aligned. Negative values are ignored.
The size of this array should be at least the number of atoms in the pattern
molecule (in case of RgMolecules, the non R-group atoms of the root).
If the size of the array is grater, the excess elements are ignored.
java.lang.IllegalArgumentExceptionpublic void rotate(MolAligner.AlignmentResult alignment)
alignment - the alignment result to usepublic MolAligner.AlignmentResult calculate(int[] indexes)
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||