Skip to content

Commit

Permalink
samll changes in code
Browse files Browse the repository at this point in the history
  • Loading branch information
ypriverol committed Oct 28, 2024
1 parent ca43c7f commit 78f3acf
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ public ArchiveSpectrum toArchiveSpectrum(String usi) {
if (attr.getAccession().equals("MS:1000511")) { //ms level
archiveSpectrum.setMsLevel(Integer.parseInt(attr.getValue()));
}
if (attr.getAccession().equals("MS:10000016")) { //scan start time
if (attr.getAccession().equals("MS:1000016")) { //scan start time
archiveSpectrum.setRetentionTime(Double.parseDouble(attr.getValue()));
}
if (attr.getAccession().equals("MS:10000041")) { //charge state
if (attr.getAccession().equals("MS:1000041")) { //charge state
archiveSpectrum.setPrecursorCharge(Integer.parseInt(attr.getValue()));
}
if (attr.getAccession().equals("MS:10000744")) { //selected ion m/z
if (attr.getAccession().equals("MS:1000744")) { //selected ion m/z
archiveSpectrum.setPrecursorMz(Double.parseDouble(attr.getValue()));
}
}
Expand All @@ -53,10 +53,10 @@ public SummaryArchiveSpectrum toSummaryArchiveSpectrum(String usi) {
continue;
}

if (attr.getAccession().equals("MS:10000041")) { //charge state
if (attr.getAccession().equals("MS:1000041")) { //charge state
summaryArchiveSpectrum.setPrecursorCharge(Integer.parseInt(attr.getValue()));
}
if (attr.getAccession().equals("MS:10000744")) { //selected ion m/z
if (attr.getAccession().equals("MS:1000744")) { //selected ion m/z
summaryArchiveSpectrum.setPrecursorMz(Double.parseDouble(attr.getValue()));
}
}
Expand Down

0 comments on commit 78f3acf

Please sign in to comment.