public class Stereochemistry extends Object
Constructor and Description |
---|
Stereochemistry() |
Modifier and Type | Method and Description |
---|---|
int |
asymmetricAtomCount()
Calculates the number of atoms having four different ligands.
|
int[] |
asymmetricAtoms()
Retrieves the indexes of atom having four different ligands.
|
int |
chiralCenterCount()
Calculates the number of chiral centers.
|
int[] |
chiralCenters()
Determines the chiral center atoms.
|
static <T extends MoleculeGraph> |
getEnantiomer(T m)
Get the enantiomer pair of the given molecule
|
MoleculeGraph |
getMolecule()
Retrieves the input molecule
|
static int[] |
getPossibleAtomCenteredStereoAtoms(MoleculeGraph m)
Returns the indexes of atom-centered stereoactive atoms.
|
static int[] |
getPossibleAtomCenteredStereoAtomsWithNoParity(MoleculeGraph m)
Returns the indexes of atoms that have the possibility to have
tetrahedral stereo and have no exact parity set on them.
|
int[] |
graphInvariant() |
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.
|
String |
stereo(int a)
Calculates absolute stereo configuration of the given atom.
|
String |
stereo(int a1,
int a2)
Calculates absolute stereo configuration of the given double bond.
|
int |
stereoDoubleBondCount()
Calculates the number of stereo double bonds.
|
public static final int ODD
public static final int EVEN
public MoleculeGraph getMolecule()
public void setMolecule(MoleculeGraph mol)
mol
- the molecule to calculate withpublic int asymmetricAtomCount()
public int[] asymmetricAtoms()
public int chiralCenterCount()
public int[] chiralCenters()
public int[] graphInvariant()
public boolean isAsymmetricAtom(int a)
a
- index of the atompublic boolean isChiral()
public boolean isChiralCenter(int a)
a
- index of the atompublic String stereo(int a)
a
- index of the atompublic String stereo(int a1, int a2)
a1
- index of the atom at one end of the double bonda2
- index of the atom at the other end of the double bondpublic int stereoDoubleBondCount()
public static <T extends MoleculeGraph> T getEnantiomer(T m)
m
- moleculepublic static int[] getPossibleAtomCenteredStereoAtoms(MoleculeGraph m)
m
- the moleculepublic static int[] getPossibleAtomCenteredStereoAtomsWithNoParity(MoleculeGraph m)
m
- the molecule