Package chemaxon.calculations.stereo
Class Stereochemistry
java.lang.Object
chemaxon.calculations.stereo.Stereochemistry
Central class for accessing functions analyzing the topology of a molecule.
- Since:
- Marvin 5.6
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Calculates the number of atoms having four different ligands.int[]
Retrieves the indexes of atom having four different ligands.int
Calculates the number of chiral centers.int[]
Determines the chiral center atoms.static <T extends MoleculeGraph>
TgetEnantiomer
(T m) Get the enantiomer pair of the given moleculeRetrieves the input moleculeboolean
isChiral()
Determines if the molecule contains an atom with R or S stereo configuration.void
setMolecule
(MoleculeGraph mol) Specifies a molecule to calculate with.stereo
(int a) Calculates absolute stereo configuration of the given atom.stereo
(int a1, int a2) Calculates absolute stereo configuration of the given double bond.int
Calculates the number of stereo double bonds.
-
Field Details
-
ODD
public static final int ODD- See Also:
-
EVEN
public static final int EVEN- See Also:
-
-
Constructor Details
-
Stereochemistry
public Stereochemistry()
-
-
Method Details
-
getMolecule
Retrieves the input molecule- Returns:
- the molecule to calculate with
-
setMolecule
Specifies a molecule to calculate with.- Parameters:
mol
- the molecule to calculate with
-
asymmetricAtomCount
public int asymmetricAtomCount()Calculates the number of atoms having four different ligands.- Returns:
- number of asymmetric atoms
-
asymmetricAtoms
public int[] asymmetricAtoms()Retrieves the indexes of atom having four different ligands.- Returns:
- indexes of asymmetric atoms
- Since:
- Marvin 5.3
-
chiralCenterCount
public int chiralCenterCount()Calculates the number of chiral centers.- Returns:
- number of chiral center atoms
-
chiralCenters
public int[] chiralCenters()Determines the chiral center atoms.- Returns:
- indexes of chiral center atoms
- Since:
- Marvin 5.3
-
isChiral
public boolean isChiral()Determines if the molecule contains an atom with R or S stereo configuration.- Returns:
- true if the molecule is chiral.
-
stereo
Calculates absolute stereo configuration of the given atom. Returns "R" or "S" correspondingly, if the atom is stereo, otherwise it returns an empty string,- Parameters:
a
- index of the atom- Returns:
- the absolute stereo configuration of the atom
-
stereo
Calculates absolute stereo configuration of the given double bond. Returns "E" or "Z" correspondingly, if the bond is a stereo double bond, otherwise it returns an empty string. Double bonds in small rings are not considered stereo bonds.- Parameters:
a1
- index of the atom at one end of the double bonda2
- index of the atom at the other end of the double bond- Returns:
- the absolute stereo configuration of the atom
-
stereoDoubleBondCount
public int stereoDoubleBondCount()Calculates the number of stereo double bonds.- Returns:
- number of stereo double bonds atoms
-
getEnantiomer
Get the enantiomer pair of the given molecule- Parameters:
m
- molecule- Returns:
- the enantiomer pair of the original structure
-