|
|||||||||
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()
Returns information about the licensing of the product. |
double |
rmsd()
calculates the rmsd value |
void |
setLicenseEnvironment(java.lang.String env)
Every license can have a modifier environment that's typically an integration environment. |
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()
chemaxon.license.Licensable
return LicenseHandler.isLicensed( LicenseHandler.MY_IDENTIFIER, licenseEnvironment );
isLicensed
in interface chemaxon.license.Licensable
public void setLicenseEnvironment(java.lang.String env)
chemaxon.license.Licensable
private String licenseEnvironment = ""; public void setLicenseEnvironment(String env) { licenseEnvironment = env; }
setLicenseEnvironment
in interface chemaxon.license.Licensable
env
- environment String to be stored and passed to the LicenseHandler in the isLicensed methodpublic 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 |