|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.marvin.util.CleanUtil
public class CleanUtil
Utility methods for cleaning.
| Constructor Summary | |
|---|---|
CleanUtil()
|
|
| Method Summary | |
|---|---|
static boolean |
arrangeComponents(MoleculeGraph mol)
Arranges molecule components (reactants, agents, products, R-group definitions) nicely. |
static void |
arrangeMolecules(CGraph[] mo,
int dist,
int col)
Arrange molecules nicely If we have more molecules try to arrange them in a 2D square lattice |
static void |
arrangeReaction(RxnMolecule m)
Arranges reaction components nicely |
static double |
calcBadness(MoleculeGraph mol1,
MoleculeGraph mol2,
MolAtom sa,
MolBond[] xbonds)
Calculates a "badness" value for the atomic coordinates. |
static CTransform3D |
createRotationAboutBond(MolBond b,
double phi)
Creates a rotation transformation about a bond. |
static double[] |
createSavedCoordsArray(MoleculeGraph g)
Creates an empty array for the atomic coordinates of a structure. |
static boolean |
hasWiggly(MolAtom a)
Check if at least one wiggly bond starts from this atom. |
static boolean[] |
isNonPreferredStereoAtom(MoleculeGraph m)
Check if the atoms in the molecule is in SP2 hybridization state and has wedge whose getNode1 is the specified atom, but wiggly bonds next to double bonds are allowed. |
static boolean |
removeCTflagFromSmallRings(MoleculeGraph m)
Remove CIS|TRANS flag from bonds in rings smaller than size 8. |
static void |
restoreCoords(MoleculeGraph g,
double[] coords)
Restores atomic coordinates. |
static void |
saveCoords(MoleculeGraph g,
double[] coords)
Saves atomic coordinates. |
static void |
setCTCrossedBond(MoleculeGraph m)
Convert wiggly type double bonds to crossed. |
static boolean |
setCTWigglyBond(MoleculeGraph m)
Convert crossed double bonds to wiggly type. |
static double |
sumDistanceSquare(MoleculeGraph mol,
DPoint3 p)
Calculates the sum of the distance square for each atom from a point. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CleanUtil()
| Method Detail |
|---|
public static double sumDistanceSquare(MoleculeGraph mol,
DPoint3 p)
mol - the moleculep - the point
public static double calcBadness(MoleculeGraph mol1,
MoleculeGraph mol2,
MolAtom sa,
MolBond[] xbonds)
mol1 - the original moleculemol2 - the transformed substructuresa - additional transformed atom or nullxbonds - additional bonds between mol1 and mol2, or null
public static double[] createSavedCoordsArray(MoleculeGraph g)
g - the structure
public static void saveCoords(MoleculeGraph g,
double[] coords)
g - the structurecoords - array for the coordinates
public static void restoreCoords(MoleculeGraph g,
double[] coords)
g - the structurecoords - array containing the coordinates
public static CTransform3D createRotationAboutBond(MolBond b,
double phi)
b - the bondphi - rotation anglepublic static boolean arrangeComponents(MoleculeGraph mol)
mol - the molecule
true if components have been rearranged,
false if no components foundpublic static void arrangeReaction(RxnMolecule m)
m - the reaction molecule
public static void arrangeMolecules(CGraph[] mo,
int dist,
int col)
mo - moleculesdist - use CCLENGTH distance for the moleculescol - number of colums (if -1 calculate it)public static boolean setCTWigglyBond(MoleculeGraph m)
m - moleculepublic static boolean hasWiggly(MolAtom a)
a - atom
public static void setCTCrossedBond(MoleculeGraph m)
m - moleculepublic static boolean[] isNonPreferredStereoAtom(MoleculeGraph m)
m - molecule
public static boolean removeCTflagFromSmallRings(MoleculeGraph m)
m - molecule
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||