|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.marvin.alignment.AlignRigidEasy
public class AlignRigidEasy
Aligns pairs of molecules by translating and rotating one of them and leave the one called the reference molecule intact. Example usage
AlignRigidEasy easy = new AlignRigidEasy();
easy.setReference(m1);
easy.setRotatable(m2);
int[][] easyMap = new int[number of pairs][2];
for (int i = 0; i < easyMap.length; i++) {
easyMap[i][0] = atom index from m1;
easyMap[i][1] = atom index from m2;
}
easy.align(easyMap);
double rmsd = easy.rmsd();
| Constructor Summary | |
|---|---|
AlignRigidEasy()
|
|
| Method Summary | |
|---|---|
void |
align()
does a simple one-to-one atom mappin and aligns. |
void |
align(int[][] index)
Rigid alignment on the user defined atom index |
static double[] |
convert(double[][] c)
|
Molecule |
getReferenceAndRotatedFused()
before getRotatedMolecule the align() method must be called |
double[][] |
getRotatedCoordinates()
before getRotatedCoordinates the align() method must be called |
Molecule |
getRotatedMolecule()
before getRotatedMolecule the align() method must be called |
boolean |
isLicensed()
|
double |
rmsd()
calculates the rmsd value |
void |
setLicenseEnvironment(java.lang.String env)
|
void |
setReference(double[][] c)
sets the coordinates of the reference molecule directly If this used the getReferenceAndRotatedFused() cannot be applied |
void |
setReference(Molecule m)
sets the reference molecule which remains intact |
void |
setRotatable(double[][] c)
sets the coordinates of the rotatable molecule directly If this used the getReferenceAndRotatedFused() and getRotatedMolecule() cannot be applied |
void |
setRotatable(Molecule m)
sets the molecule to translate and rotate during the alignment |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AlignRigidEasy()
| Method Detail |
|---|
public boolean isLicensed()
isLicensed in interface chemaxon.license.Licensablepublic void setLicenseEnvironment(java.lang.String env)
setLicenseEnvironment in interface chemaxon.license.Licensablepublic void setReference(Molecule m)
m - public void setRotatable(Molecule m)
m - molecule to translate and rotatepublic static double[] convert(double[][] c)
public void setReference(double[][] c)
getReferenceAndRotatedFused() cannot be applied
c - double[number of atoms][3:x,y,z] formatpublic void setRotatable(double[][] c)
getReferenceAndRotatedFused() and getRotatedMolecule() cannot be applied
c - double[number of atoms][3:x,y,z] formatpublic double[][] getRotatedCoordinates()
align() method must be called
public Molecule getRotatedMolecule()
align() method must be called
public Molecule getReferenceAndRotatedFused()
align() method must be called
public double rmsd()
public void align()
chemaxon.license.LicenseException - if no valid LicenseHandler.ALIGNMENT license was found.public void align(int[][] index)
index - in format int[number of pairs][reference atom index, atom to rotate index]
chemaxon.license.LicenseException - if no valid LicenseHandler.ALIGNMENT license was found.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||