Skip to content

Commit

Permalink
Fix DAT N-term modification bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiLiCn committed Apr 9, 2021
1 parent c453ec2 commit 10a24fc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>PDV</groupId>
<artifactId>PDV</artifactId>
<packaging>jar</packaging>
<version>1.7.2</version>
<version>1.7.3</version>
<name>PDV</name>
<url>https://github.com/wenbostar/PDV</url>
<description>An integrative proteomics viewer</description>
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/PDVGUI/fileimport/DATFileImport.java
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ private void parseFile() throws SQLException, IOException {
for (String aa : fixedModAAAndName.keySet()){
String modName = fixedModAAAndName.get(aa);

if (aa.equals("N-term")){
if (aa.equals("N-term") | aa.equals("N_term")){
utilitiesModifications.add(new ModificationMatch(modName, true, 1));
} else if (aa.equals("C-term")){
} else if (aa.equals("C-term") | aa.equals("C_term")){
utilitiesModifications.add(new ModificationMatch(modName, true, peptideSeq.length()));
} else {
for (int modIndex = 0; modIndex < peptideSeq.length(); modIndex ++){
Expand Down Expand Up @@ -398,7 +398,7 @@ private void addModification(Modification modification, Boolean isVariable){
residues.add(location);
String modName = singleModName + " of N-term";
PTM ptm = new PTM(PTM.MODNPAA, modName, singleMass, residues);
ptm.setShortName(shortMod);
ptm.setShortName(singleModName);
ptmFactory.addUserPTM(ptm);

if (!allModifications.contains(modName)) {
Expand All @@ -413,7 +413,7 @@ private void addModification(Modification modification, Boolean isVariable){
residues.add(location);
String modName = singleModName + " of C-term";
PTM ptm = new PTM(PTM.MODCP, modName, singleMass, residues);
ptm.setShortName(shortMod);
ptm.setShortName(singleModName);
ptmFactory.addUserPTM(ptm);

if (!allModifications.contains(modName)) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/PDVGUI/gui/PDVMainClass.java
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public class PDVMainClass extends JFrame {
/**
* Version
*/
private static final String VERSION = "1.7.2";
private static final String VERSION = "1.7.3";

/**
* Main class
Expand Down

0 comments on commit 10a24fc

Please sign in to comment.