Examples of InChIGenerator


Examples of org.openscience.cdk.inchi.InChIGenerator

        return its.getAtomContainer();
    }

    @Override public InChI generate(IAtomContainer container) throws CDKException {
        InChIGeneratorFactory igf = InChIGeneratorFactory.getInstance();
        InChIGenerator its = igf.getInChIGenerator(container);

        if (its.getReturnStatus() != INCHI_RET.OKAY && its.getReturnStatus() != INCHI_RET.WARNING)
            throw new CDKException("Could not generate InChI - " + its.getMessage());

        InChI inchi = new InChI();
        inchi.setInChI(its.getInchi());
        inchi.setKey(its.getInchiKey());
        inchi.setAuxInfo(its.getAuxInfo());
        return inchi;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.