PeakListRow row = alignedPeakList.getRow(rowIndex);
// Collect available peak intensities for selected files
Vector<Double> groupOnePeakIntensities = new Vector<Double>();
for (int fileIndex = 0; fileIndex < groupOneFiles.length; fileIndex++) {
ChromatographicPeak p = row.getPeak(groupOneFiles[fileIndex]);
if (p != null) {
if (measurementType == PeakMeasurementType.AREA)
groupOnePeakIntensities.add(p.getArea());
else
groupOnePeakIntensities.add(p.getHeight());
}
}
Vector<Double> groupTwoPeakIntensities = new Vector<Double>();
for (int fileIndex = 0; fileIndex < groupTwoFiles.length; fileIndex++) {
ChromatographicPeak p = row.getPeak(groupTwoFiles[fileIndex]);
if (p != null) {
if (measurementType == PeakMeasurementType.AREA)
groupTwoPeakIntensities.add(p.getArea());
else
groupTwoPeakIntensities.add(p.getHeight());
}
}
// If there are at least one measurement from each group for this
// peak then calc logratio and include this peak in the plot