Skip to content

Commit

Permalink
max modification count
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-combe committed Feb 24, 2020
1 parent 88fdeb4 commit 18e16ee
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/CLMS/model/SpectrumMatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -549,9 +549,12 @@ CLMS.model.SpectrumMatch.prototype.modificationCount = function() {
return count;
}

var modCount = peptideModCount(this.matchedPeptides[0]);
var modCount1 = peptideModCount(this.matchedPeptides[0]);
if (this.matchedPeptides[1]) {
modCount += peptideModCount(this.matchedPeptides[1]);
var modCount2 = peptideModCount(this.matchedPeptides[1]);
if (modCount2 > modCount1) {
return modCount2;
}
}
return modCount;
return modCount1;
}

0 comments on commit 18e16ee

Please sign in to comment.