Package org.openscience.cdk.isomorphism.matchers

Examples of org.openscience.cdk.isomorphism.matchers.QueryAtomContainer


          }
        }
        if(smiles != null && smiles.contains("*")) {
          try {
            //System.out.println(name + "\t" + smiles);
            QueryAtomContainer qac = makeQAC(smiles);
            qacs.put(name, qac);
            qsmiles.put(name, smiles);
            qid.put(name, id);
          } catch (Exception e) {
            //e.printStackTrace();
View Full Code Here


  }
 
  private QueryAtomContainer makeQAC(String smiles) throws Exception {
    IMolecule mol = sp.parseSmiles(smiles);
    ha.addExplicitHydrogensToSatisfyValency(mol);
    QueryAtomContainer qac = QueryAtomContainerCreator.createBasicQueryContainer(mol);
    for(int i=0;i<qac.getAtomCount();i++) {
      IAtom a = qac.getAtom(i);
      if(a.getSymbol().equals("R")) {
        a.setSymbol("C");
        a.setAtomicNumber(6);
      }
    }
View Full Code Here

TOP

Related Classes of org.openscience.cdk.isomorphism.matchers.QueryAtomContainer

Copyright © 2018 www.massapicom. 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.