Skip to content

Commit

Permalink
Fix a bug that MS level checking is only needed in mzXML format.
Browse files Browse the repository at this point in the history
  • Loading branch information
fcyu committed Feb 6, 2018
1 parent c5325af commit 72ffd87
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/java/proteomics/Spectrum/PreSpectra.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,11 @@ public PreSpectra(JMzReader spectra_parser, double ms1Tolerance, double leftInve
continue;
}

if (spectrum.getMsLevel() == 1) {
parentId = spectrum.getId();
continue;
if (ext.toLowerCase().contentEquals("mzxml")) {
if (spectrum.getMsLevel() == 1) {
parentId = spectrum.getId();
continue;
}
}

if (spectrum.getPrecursorCharge() == null) {
Expand Down

0 comments on commit 72ffd87

Please sign in to comment.