errorMessage = "Could not read file or the file is empty ";
return;
}
// Fill new peak list with empty rows
for (int row = 0; row < peaks.size(); row++) {
PeakListRow newRow = new SimplePeakListRow(ID++);
processedPeakList.addRow(newRow);
}
// Process all raw data files
// Canceled?
if (isCanceled()) {
return;
}
List<Gap> gaps = new ArrayList<Gap>();
// Fill each row of this raw data file column, create new empty
// gaps
// if necessary
for (int row = 0; row < peaks.size(); row++) {
PeakListRow newRow = processedPeakList.getRow(row);
// Create a new gap
Range mzRange = mzTolerance.getToleranceRange(peaks.get(row)
.getMZ());
Range rtRange = rtTolerance.getToleranceRange(peaks.get(row)
.getRT());
newRow.addPeakIdentity(new SimplePeakIdentity(peaks.get(row)
.getName()), true);
Gap newGap = new Gap(newRow, dataFile, mzRange, rtRange,
intTolerance);