|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchemaxon.marvin.alignment.AlignOnPairedAtoms
public class AlignOnPairedAtoms
Overlays two molecules using the user defined atom pairs
Example:
Molecule mRef = null; Molecule m = null; AlignOnPairedAtoms ap = new AlignOnPairedAtoms(); ap.setReferenceMolecule(mRef, false); // reference will be kept rigid ap.setMoleculeToAlign(m, true); // this will be kept flexible //add pairs where you want for (int i = 0; i < m.getAtomCount(); i++) { p.addAtomPair(i, i); } ap.findFirst(); // aligns in the input conformation ap.findNext(); // randomizes the flexible molecules if flexible alignment selected and aligns. System.out.println("rmsd: " + p.getRmsd()); Molecule result = p.getAlignedWithNewCoordinates();
Constructor Summary | |
---|---|
AlignOnPairedAtoms()
|
Method Summary | |
---|---|
void |
addAtomPair(int atom0,
int atom1)
Adds an alignment constraint between the reference and aligned molecule. |
void |
addAtomPair(int atom0,
int atom1,
double weight)
Adds an alignment constraint between the reference and aligned molecule. |
void |
findFirst()
Overlays the molecule to align on the reference using the predefined atom pairs. |
void |
findNext()
Randomizes dihedral angles of the input conformation for flexible molecules and aligns. |
Molecule |
getAlignedWithNewCoordinates()
|
double[][] |
getCoordinatesOfAligned()
|
double[][] |
getCoordinatesOfReference()
|
java.util.Collection<AlignmentMolecule> |
getMolecules()
|
chemaxon.marvin.alignment.NodeColor |
getNodeColor()
|
AlignmentProperties.NodeType |
getNodeType()
|
Molecule |
getReferenceWithNewCoordinates()
|
double |
getRmsd()
|
int |
getStepLimit()
|
int |
getTimeLimit()
|
boolean |
isLicensed()
Returns information about the licensing of the product. |
void |
removeAllPairs()
Removes all user defined atom pairs. |
void |
removeMolecules()
|
void |
setAromatize(boolean aromatize)
|
void |
setDehidrogenize(boolean hy)
|
void |
setFlexibleRingRotatableBondCount(int b)
|
void |
setFlexibleRingSize(int s)
|
void |
setLicenseEnvironment(java.lang.String env)
Every license can have a modifier environment that's typically an integration environment. |
void |
setMoleculeToAlign(Molecule m,
boolean flexible)
Sets the molecule to align to the reference. |
void |
setNodeType(AlignmentProperties.NodeType t)
|
void |
setProgressMonitor(chemaxon.common.util.MProgressMonitor progressMonitor)
|
void |
setProperty(AlignmentProperties props)
|
void |
setProximity(chemaxon.marvin.alignment.AlignmentProperties.ProximityPotentialType pot)
|
void |
setReferenceMolecule(Molecule m,
boolean flexible)
Sets the reference molecule to align to. |
void |
setStepLimit(int stepLimit)
|
void |
setTimeLimit(int timeLimit)
Sets the maximum time used for the alignment. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AlignOnPairedAtoms()
Method Detail |
---|
public void removeMolecules()
public void setReferenceMolecule(Molecule m, boolean flexible) throws chemaxon.marvin.alignment.AlignmentException
m
- reference moleculeflexible
- if true treat this molecule flexible. If false its conformation is frozen.
chemaxon.marvin.alignment.AlignmentException
public void setMoleculeToAlign(Molecule m, boolean flexible) throws chemaxon.marvin.alignment.AlignmentException
m
- this molecule will be translated and rotatedflexible
- if true treat this molecule flexible. If false its conformation is frozen.
chemaxon.marvin.alignment.AlignmentException
public double[][] getCoordinatesOfReference()
public double[][] getCoordinatesOfAligned()
public Molecule getReferenceWithNewCoordinates()
public Molecule getAlignedWithNewCoordinates()
public void addAtomPair(int atom0, int atom1, double weight) throws chemaxon.marvin.alignment.AlignmentException
atom0
- atom seq starting from 0 from the reference moleculeatom1
- atom seq starting from 0 from the other moleculeweight
- weight of the constraint of this pair
chemaxon.marvin.alignment.AlignmentException
- if there is no such atompublic void addAtomPair(int atom0, int atom1) throws chemaxon.marvin.alignment.AlignmentException
atom0
- atom seq starting from 0 from the reference moleculeatom1
- atom seq starting from 0 from the other molecule
chemaxon.marvin.alignment.AlignmentException
- if there is no such atompublic void findFirst() throws chemaxon.marvin.alignment.AlignmentException
chemaxon.marvin.alignment.AlignmentException
public void findNext() throws chemaxon.marvin.alignment.AlignmentException
chemaxon.marvin.alignment.AlignmentException
public double getRmsd()
public void removeAllPairs()
public void setProperty(AlignmentProperties props)
public AlignmentProperties.NodeType getNodeType()
public chemaxon.marvin.alignment.NodeColor getNodeColor()
public void setAromatize(boolean aromatize)
public void setDehidrogenize(boolean hy)
public void setFlexibleRingSize(int s)
public void setFlexibleRingRotatableBondCount(int b)
public java.util.Collection<AlignmentMolecule> getMolecules()
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 int getStepLimit()
public void setStepLimit(int stepLimit)
public int getTimeLimit()
public void setNodeType(AlignmentProperties.NodeType t)
public void setTimeLimit(int timeLimit)
timeLimit
- time limit in millisecond. if -1 then disabled.public void setProgressMonitor(chemaxon.common.util.MProgressMonitor progressMonitor)
public void setProximity(chemaxon.marvin.alignment.AlignmentProperties.ProximityPotentialType pot)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |