Package net.sf.mzmine.modules.peaklistmethods.identification.formulaprediction.elements

Examples of net.sf.mzmine.modules.peaklistmethods.identification.formulaprediction.elements.ElementRule


    String elementsArray[] = elements.split(",");
    for (String elementEntry : elementsArray) {

      try {
        ElementRule rule = new ElementRule(elementEntry);

        // We can ignore elements with max 0 atoms
        if (rule.getMaxCount() == 0)
          continue;

        rulesSet.add(rule);

      } catch (IllegalArgumentException e) {
View Full Code Here


      String elementsArray[] = elements.split(",");
      for (String elementEntry : elementsArray) {

        try {
          ElementRule rule = new ElementRule(elementEntry);

          // We can ignore elements with max 0 atoms
          if (rule.getMaxCount() == 0) {
            continue;
          }

          // Adjust the maximum numbers according to the mass we are
          // searching
          int maxCountAccordingToMass = (int) (massRange.getMax() / rule
              .getMass());
          if (rule.getMaxCount() > maxCountAccordingToMass) {
            rule.setMaxCount(maxCountAccordingToMass);
          }

          rulesSet.add(rule);

        } catch (IllegalArgumentException e) {
View Full Code Here

          + msmsScan.getScanNumber());
    }
    // Sorted by mass in descending order
    ArrayList<ElementRule> rulesSet = new ArrayList<ElementRule>();
    for (IIsotope isotope : parentFormula.isotopes()) {
      ElementRule rule = new ElementRule(isotope.getSymbol(), 0,
          parentFormula.getIsotopeCount(isotope));
      rulesSet.add(rule);
    }
    ElementRule msmsElementRules[] = rulesSet.toArray(new ElementRule[0]);

    int totalMSMSpeaks = 0, interpretedMSMSpeaks = 0;
    Map<DataPoint, String> msmsAnnotations = new Hashtable<DataPoint, String>();

    msmsCycle : for (DataPoint dp : msmsIons) {
View Full Code Here

TOP

Related Classes of net.sf.mzmine.modules.peaklistmethods.identification.formulaprediction.elements.ElementRule

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.