Examples of Molecule


Examples of org.openscience.cdk.Molecule

      //System.out.println("Use IGF!");
      try {
        lock.lock();
        //getInstance().igf.
        IAtomContainer iac = igf.getInChIToStructure(InChI).getAtomContainer();
        IMolecule mol = new Molecule(iac);
        molCache.put(InChI, mol);

        return mol;
        //return getInstance().igf.getInChIGenerator(mol).getInchi();
      } catch (Exception e) {
View Full Code Here

Examples of org.openscience.cdk.Molecule

      //proc.waitFor();
      /* This loop seems to work better under windows than proc.waitFor(), which hangs */
     
      //System.out.println(tmpMolFile.getAbsolutePath());
     
      IMolecule mol = (IMolecule)new MDLReader(new InputStreamReader(new FileInputStream(tmpMolFile), "UTF-8")).read(new Molecule());
     
      //System.out.println(FileTools.readTextFile(tmpMolFile));
     
      tmpMolFile.delete();
      tmpInChIAuxFile.delete();
View Full Code Here

Examples of org.openscience.cdk.Molecule

      }
    }
    if(!done) {
      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) {
View Full Code Here

Examples of org.openscience.cdk.Molecule

  }
 
  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);
View Full Code Here

Examples of org.openscience.cdk.Molecule

    private static final long serialVersionUID = -4683096180546540588L;
    private IMolecule itsMolecule;
    private TwoDimensionList<Double> itsDistanceMatrix;

    public DistanceMatrix() {
        this.setMolecule(new Molecule());
        this.setDistanceMatrix(new TwoDimensionList<Double>());
    }
View Full Code Here

Examples of org.openscience.cdk.Molecule

    private IMolecule itsMolecule;
    private TwoDimensionList<Integer> itsDistanceMatrix;

    public TopologicalDistanceMatrix() {
        this.setMolecule(new Molecule());
        this.setDistanceMatrix(new TwoDimensionList<Integer>());
    }
View Full Code Here

Examples of org.openscience.cdk.Molecule

        return theMoleculeSet;
    }

    private IMolecule __getChemicalShiftAndMpeoeAndCdeapBySDFormat(Nmr1dUnit thePeak, int theMoleculeIndex) {
        IMolecule theMolecule = new Molecule();
        int theAnnotatedAtomNumber = thePeak.getAnnotatedAtomNumber();

        theMolecule.setProperty(this.CHEMICAL_SHIFT_COLUMN_NAME_IN_RESULT_FILE, thePeak.getChemicalShift());
        theMolecule.setProperty(this.MPEOE_COLUMN_NAME_IN_RESULT_FILE, this.getMPEOEListByMolecules().get(theMoleculeIndex).get(theAnnotatedAtomNumber));
        theMolecule.setProperty(this.CDEAP_COLUMN_NAME_IN_RESULT_FILE, this.getCDEAPListByMolecules().get(theMoleculeIndex).get(theAnnotatedAtomNumber));

        return theMolecule;
    }
View Full Code Here

Examples of org.openscience.cdk.Molecule

        return theMoleculeSet;
    }

    private IMolecule __getHoseCodeDescriptorBySDFormat(Nmr1dUnit thePeak, int theHoseCodeLevel, int theMoleculeIndex) {
        IMolecule theMolecule = new Molecule();
        int theAnnotatedAtomNumber = thePeak.getAnnotatedAtomNumber();

        if (this.getMPEOEListByMolecules().get(theMoleculeIndex).get(theAnnotatedAtomNumber) != this.NOT_CONTAIN_PROPERTY_VALUE
                && !this.getSFEList().get(theMoleculeIndex).equals(this.INCORRECT_VALUE)) {
            HoseCodeDescriptor theHoseCodeDescriptor = new HoseCodeDescriptor(this.getMoleculeSet().getMolecule(theMoleculeIndex), theHoseCodeLevel);

            theMolecule.setProperty(this.CHEMICAL_SHIFT_COLUMN_NAME_IN_RESULT_FILE, thePeak.getChemicalShift());
            theMolecule.setProperty(this.MPEOE_COLUMN_NAME_IN_RESULT_FILE, this.getMPEOEListByMolecules().get(theMoleculeIndex).get(theAnnotatedAtomNumber));
            theMolecule.setProperty(this.CDEAP_COLUMN_NAME_IN_RESULT_FILE, this.getCDEAPListByMolecules().get(theMoleculeIndex).get(theAnnotatedAtomNumber));
            theMolecule.setProperty(this.SFE_COULUMN_NAME_IN_RESULT_FILE, this.getSFEList().get(theMoleculeIndex));
            theMolecule.setProperties(this.__getHoseCodeDescriptorBySDFormat(this.getMoleculeSet().getMolecule(theMoleculeIndex), theAnnotatedAtomNumber, theHoseCodeLevel));
        }

        return theMolecule;
    }
View Full Code Here

Examples of org.openscience.cdk.Molecule

        return theMolecule;
    }

    private Map<Object, Object> __getHoseCodeDescriptorBySDFormat(IMolecule theMolecule, int theAnnotatedAtomNumber, int theHoseCodeLevel) {
        HoseCodeDescriptor theHoseCodeDescriptor = new HoseCodeDescriptor(theMolecule, theHoseCodeLevel);
        IMolecule theDataMolecule = new Molecule();

        for (int pi = 0, pEnd = theHoseCodeDescriptor.getHoseCodeNameList().size(); pi < pEnd; pi++) {
            theDataMolecule.setProperty(theHoseCodeDescriptor.getHoseCodeNameList().get(pi), theHoseCodeDescriptor.getHoseCodeValue2dList().get(theAnnotatedAtomNumber).get(pi));
        }

        return theDataMolecule.getProperties();
    }
View Full Code Here

Examples of org.openscience.cdk.Molecule

    private final int NITROGEN_SYMBOL_INDEX = 14;
    private final int PHOSPHATE_SYMBOL_INDEX = 15;
    private final int SULFUR_SYMBOL_INDEX = 16;

    public HoseCodeDescriptor() {
        this.setMolecule(new Molecule());
        this.setHoseCodeNameList(new ArrayList<String>());
        this.setHoseCodeValue2dList(new TwoDimensionList<Integer>());
        this.setHoseCodeLevel(-1);
    }
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.