SimplePeakListRow normalizedRow = rowMap.get(originalpeakListRow);
normalizedPeakList.addRow(normalizedRow);
}
// Add new peaklist to the project
MZmineProject currentProject = MZmineCore.getCurrentProject();
currentProject.addPeakList(normalizedPeakList);
// Load previous applied methods
for (PeakListAppliedMethod proc : originalPeakList.getAppliedMethods()) {
normalizedPeakList.addDescriptionOfAppliedTask(proc);
}
// Add task description to peakList
normalizedPeakList
.addDescriptionOfAppliedTask(new SimplePeakListAppliedMethod(
"Linear normalization of by " + normalizationType,
parameters));
// Remove the original peaklist if requested
if (removeOriginal)
currentProject.removePeakList(originalPeakList);
logger.info("Finished linear normalizer");
setStatus(TaskStatus.FINISHED);
}