All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.actelion.research.chem.contrib.testChiralDia Maven / Gradle / Ivy

There is a newer version: 2024.11.2
Show newest version
package com.actelion.research.chem.contrib;

import com.actelion.research.chem.SmilesParser;
import com.actelion.research.chem.StereoMolecule;
import com.actelion.research.chem.contrib.DiastereotopicAtomID;
import com.actelion.research.chem.contrib.HydrogenHandler;

public class testChiralDia {

    public static void main(String[] args) {
        StereoMolecule mol = new StereoMolecule();
        SmilesParser parser = new SmilesParser();
        try {
            parser.parse(mol, "C1CCCCC1C");
        } catch (Exception e) {
            System.out.println(e.toString());
        }

        HydrogenHandler.addImplicitHydrogens(mol);

        String[] ids = DiastereotopicAtomID.getAtomIds(mol);
        for (String id : ids) {
            System.out.println(id);
        }
        /*
        System.out.println("With hydrogens");
        HydrogenHandler.addImplicitHydrogens(mol);
        ids = DiastereotopicAtomID.getAtomIds(mol);


        for (String id : ids) {
            System.out.println(id);
        }
*/

    }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy