Skip to content

Commit

Permalink
Fix a bug when there is a link-site in protein C-term.
Browse files Browse the repository at this point in the history
  • Loading branch information
fcyu committed May 23, 2017
1 parent e91c9f7 commit 80f8c2f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/proteomics/TheoSeq/MassTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ public Set<String> buildChainSet(String pro_seq) {
// If there is a K in middle, this peptide is a chain.
chain_seq_set.add("n" + sub_string + "c");
}
if (digest_range_1[1] == pro_seq.length()) {
// This is the end of the protein. No digestion site, so "K" in any position including C-term can be linked.
if (sub_string.contains("K")) {
chain_seq_set.add("n" + sub_string + "c");
}
}
}
// Add N-term peptide
if (digest_range_map.get(i).size() > 0) {
Expand Down

0 comments on commit 80f8c2f

Please sign in to comment.