Examples of HydrogenAdder


Examples of org.openscience.cdk.tools.HydrogenAdder

      mol = ConverterToInChI.getMolFromInChI(inchi);
      if(mol != null) {
        mol = new Molecule(mol);
        try {
          StructureConverter.configureMolecule(mol);
          new HydrogenAdder(new ValencyHybridChecker()).addExplicitHydrogensToSatisfyValency(mol);
          StructureConverter.addHydrogensForSilicon(mol);
        } catch (Exception e) {
          throw new Error(e);
        }
        HydrogenRemover.removeInsignificantHydrogens(mol);
View Full Code Here

Examples of org.openscience.cdk.tools.HydrogenAdder

  private void prepareMolecule() throws Exception {
    ConverterToInChI.clearInChIFromCache(targetInChI);
    mol = ConverterToInChI.getMolFromInChI(targetInChI);
    mol = new Molecule(mol);
   
    new HydrogenAdder().addExplicitHydrogensToSatisfyValency(mol);
    StructureConverter.addHydrogensForSilicon(mol);

    //System.out.println(mol);
    StructureConverter.configureMoleculeIsotopes(mol);
    HydrogenRemover.removeInsignificantHydrogens(mol, false);
View Full Code Here

Examples of org.openscience.cdk.tools.HydrogenAdder

 
  public ChEBIGenerics() {
    try {
      cache = new HashMap<String,List<String>>();
      sp = new SmilesParser(DefaultChemObjectBuilder.getInstance());
      ha = new HydrogenAdder(new ValencyHybridChecker());
      OBOOntology o = OBOOntology.getInstance();
     
      qacs = new HashMap<String, QueryAtomContainer>();
      qsmiles = new HashMap<String, String>();
      qid = new HashMap<String, String>();
View Full Code Here

Examples of org.openscience.cdk.tools.HydrogenAdder

    return myInstance;
  }
 
  private StructureConverter() throws Exception {
    checker = new ValencyHybridChecker();
    hydrogenAdder = new HydrogenAdder(checker);   
  }
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.