return dataPoints;
}
private int extractParentScanNumber(Spectrum spectrum) {
PrecursorList precursorListElement = spectrum.getPrecursorList();
if ((precursorListElement == null)
|| (precursorListElement.getCount().equals(0)))
return -1;
List<Precursor> precursorList = precursorListElement.getPrecursor();
for (Precursor parent : precursorList) {
// Get the precursor scan number
String precursorScanId = parent.getSpectrumRef();
if (precursorScanId == null) {
logger.warning("Missing precursor spectrumRef tag for spectrum ID "