Skip SpectralDBAnnotatiobn matches without datapoints, ie. NIST MS Search Results.
@@ -172,7 +172,9 @@ public class SpectraIdentificationResultsWindowFX extends Stage {
// add all
for (SpectralDBAnnotation match : matches) {
if (!totalMatches.contains(match)) {
- // add
+
+ // add and skip matches without datapoints
+ if(match.getEntry().getDataPoints() != null){
totalMatches.add(match);
SpectralMatchPanelFX pn = new SpectralMatchPanelFX(match);
pn.setCoupleZoomY(isCouplingZoomY);
@@ -180,6 +182,7 @@ public class SpectraIdentificationResultsWindowFX extends Stage {
matchPanels.put(match, pn);
}
}
+ }
// sort and show
sortTotalMatches();
}
