com.actelion.research.chem.contrib.DiastereotopicAtomID Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openchemlib Show documentation
Show all versions of openchemlib Show documentation
Open Source Chemistry Library
package com.actelion.research.chem.contrib;
import com.actelion.research.chem.*;
public class DiastereotopicAtomID {
private static int xAtomicNumber = Molecule.getAtomicNoFromLabel("X", Molecule.cPseudoAtomX);
public static String[] getAtomIds(StereoMolecule molecule) {
addMissingChirality(molecule);
int numberAtoms=molecule.getAllAtoms();
String[] ids=new String[numberAtoms];
StereoMolecule tempMolecule;
for (int iAtom=0; iAtom0 and not >1 because there could be unspecified chirality in racemate
for (int i=0; i