Skip to content

Commit f3a67e4

Browse files
committed
Fix a math error that introduced new erroneous output.
1 parent 68fc913 commit f3a67e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/edu/ucsd/msjava/mzid/MZIdentMLGen.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,8 +639,8 @@ public List<PeptideEvidenceRef> getPeptideEvidenceList(DatabaseMatch match, Pept
639639
if (!isNTermMetCleaved) {
640640
// peptideSequence begins with M
641641
// TODO: is this considered possible (N-Term Methionine cleavage and peptide begins with M)?
642-
// check if the sequence starting at index + 1 matches the provided peptide sequence
643-
String matchSequence = sa.getSequence().getSubsequence(index + 1, index + 2 + peptide.getPeptideSequence().length());
642+
// check if the sequence starting at index + 2 matches the provided peptide sequence
643+
String matchSequence = sa.getSequence().getSubsequence(index + 2, index + 3 + peptide.getPeptideSequence().length());
644644
isNTermMetCleaved = matchSequence.startsWith(peptide.getPeptideSequence());
645645
}
646646
}

0 commit comments

Comments
 (0)