File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
src/main/java/com/dmtavt/deltamass Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ plugins {
99}
1010
1111group = 'com.dmtavt'
12- version = '1.2.1 '
12+ version = '1.2.2 '
1313
1414description = """DeltaMass - detection and visualization of common mass shifts in proteomic searches."""
1515
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public final class DeltaMassInfo {
2020 private static final EventBus bus = EventBus.getDefault();
2121
2222 public static final String Name = "DeltaMass";
23- public static final String Ver = "1.2.1 ";
23+ public static final String Ver = "1.2.2 ";
2424
2525 private static final String PROP_VER = "deltamass.version.current";
2626 private static final String PROP_DOWNLOAD_URL = "deltamass.download.url";
Original file line number Diff line number Diff line change @@ -169,7 +169,14 @@ public PepSearchFile parse(final Pattern decoyRegex) throws IOException {
169169 if (mi == null) {
170170 spm.seqModStateId = spm.seq;
171171 } else {
172- StringBuilder sb = new StringBuilder(mi.getModifiedPeptide());
172+ StringBuilder sb = new StringBuilder();
173+ if (mi.getModifiedPeptide() != null) {
174+ sb.append(mi.getModifiedPeptide());
175+ } else if (sh.getPeptide() != null) {
176+ sb.append(sh.getPeptide());
177+ } else {
178+ throw new IOException("ModificationInfo->ModifiedPeptide and SearchHit->Peptide were both not present");
179+ }
173180 StringBuilder sbMods = new StringBuilder();
174181 if (mi.getModNtermMass() != null) {
175182 sb.append(String.format("_%.2f@0", mi.getModNtermMass()));
You can’t perform that action at this time.
0 commit comments