}
}
PeakStatus status = PeakStatus.valueOf(peakStatus);
SimpleChromatographicPeak peak = new SimpleChromatographicPeak(
dataFile, mass, rt, height, area, scanNumbers, mzPeaks,
status, representativeScan, fragmentScan, peakRTRange,
peakMZRange, peakIntensityRange);
peak.setCharge(currentPeakCharge);
if (currentIsotopes.size() > 0) {
SimpleIsotopePattern newPattern = new SimpleIsotopePattern(
currentIsotopes.toArray(new DataPoint[0]),
currentIsotopePatternStatus,
currentIsotopePatternDescription);
peak.setIsotopePattern(newPattern);
currentIsotopes.clear();
}
buildingRow.addPeak(dataFile, peak);