+ 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) {