Package org.openscience.cdk.formula

Examples of org.openscience.cdk.formula.MolecularFormula


    while (true) {

      if (isCanceled())
        return;

      MolecularFormula cdkFormula = generator.getNextFormula();

      if (cdkFormula == null)
        break;

      // Mass is ok, so test other constraints
View Full Code Here


        }

      }

      if (currentMass >= minMass) {
        MolecularFormula cdkFormula = generateCDKFormula();
        testedCombinations++;
        increaseCounter(0);
        return cdkFormula;
      }
View Full Code Here

  }

  private MolecularFormula generateCDKFormula() {

    MolecularFormula cdkFormula = new MolecularFormula();

    for (int i = 0; i < elementRules.length; i++) {
      if (currentCounts[i] == 0)
        continue;
      cdkFormula.addIsotope(elementRules[i].getElementObject(),
          currentCounts[i]);
    }

    return cdkFormula;
View Full Code Here

        if (isCanceled()) {
          return;
        }

        MolecularFormula cdkFormula = generator.getNextFormula();

        if (cdkFormula == null) {
          break;
        }
View Full Code Here

          .getToleranceRange(neutralLoss);

      FormulaGenerator msmsEngine = new FormulaGenerator(msmsTargetRange,
          msmsElementRules);

      MolecularFormula formula = msmsEngine.getNextFormula();
      if (formula != null) {
        String formulaString = MolecularFormulaManipulator
            .getString(formula);
        msmsAnnotations.put(dp, formulaString);
        interpretedMSMSpeaks++;
View Full Code Here

TOP

Related Classes of org.openscience.cdk.formula.MolecularFormula

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.