Skip to content

Commit

Permalink
Add Cysteine Carbamidomethylation for predicted spectra
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiLiCn committed Dec 17, 2023
1 parent 8b4317e commit e708555
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions src/main/java/PDVGUI/gui/utils/ImportPredictedDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,17 @@ private String getModificationString(String originalMod) {
String modificationString = "";

if (modelListComboBox.getSelectedIndex() == 0 || modelListComboBox.getSelectedIndex() == 7) {
if (originalMod.contains("of C")){
if (Math.abs(ptmFactory.getPTM(originalMod).getMass() -57.021464) < 0.01) {
modificationString = "[UNIMOD:4]";
}
}
if (originalMod.contains("of M")){
if (Math.abs(ptmFactory.getPTM(originalMod).getMass() -15.994915) < 0.001) {
if (Math.abs(ptmFactory.getPTM(originalMod).getMass() -15.994915) < 0.01) {
modificationString = "[UNIMOD:35]";
}
} if (originalMod.contains("of S") || originalMod.contains("of T") || originalMod.contains("of Y") || originalMod.contains("of STY")) {
if (Math.abs(ptmFactory.getPTM(originalMod).getMass() -79.966331) < 0.001) {
if (Math.abs(ptmFactory.getPTM(originalMod).getMass() -79.966331) < 0.01) {
modificationString = "[UNIMOD:21]";
}
}
Expand Down

0 comments on commit e708555

Please sign in to comment.