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 moleculestatic int[]
Returns the indexes of atom-centered stereoactive atoms.static int[]
Returns the indexes of atoms that have the possibility to have tetrahedral stereo and have no exact parity set on them.int[]
boolean
isAsymmetricAtom
(int a) Determines if an atom is asymmetric or not.boolean
isChiral()
Determines if the molecule contains an atom with R or S stereo configuration.boolean
isChiralCenter
(int a) Determines if an atom can be a tetrahedral stereogenic center.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
-
graphInvariant
public int[] graphInvariant() -
isAsymmetricAtom
public boolean isAsymmetricAtom(int a) Determines if an atom is asymmetric or not. Asymmetric atoms have four different ligands.- Parameters:
a
- index of the atom- Returns:
- true if the atom is asymmetric.
-
isChiral
public boolean isChiral()Determines if the molecule contains an atom with R or S stereo configuration.- Returns:
- true if the molecule is chiral.
-
isChiralCenter
public boolean isChiralCenter(int a) Determines if an atom can be a tetrahedral stereogenic center.- Parameters:
a
- index of the atom- Returns:
- true if the atom is stereogenic.
-
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
-
getPossibleAtomCenteredStereoAtoms
Returns the indexes of atom-centered stereoactive atoms. These stereo types are: tetrahedral stereo, axal stereo and cis-trans stereo in cases like CC1CCC(C)CC1.- Parameters:
m
- the molecule- Returns:
- the array of indexes or an empty array if no such atom found.
- Since:
- Marvin 5.12
-
getPossibleAtomCenteredStereoAtomsWithNoParity
Returns the indexes of atoms that have the possibility to have tetrahedral stereo and have no exact parity set on them.- Parameters:
m
- the molecule- Returns:
- the array of indexes or an empty array if no such atom found.
- Since:
- Marvin 5.12
-