Skip to content

Commit

Permalink
Fixed bug of DAT file import
Browse files Browse the repository at this point in the history
Term modification names in some DAT results are different.
  • Loading branch information
KaiLiCn committed Apr 5, 2021
1 parent 81f185c commit c453ec2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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.1</version>
<version>1.7.2</version>
<name>PDV</name>
<url>https://github.com/wenbostar/PDV</url>
<description>An integrative proteomics viewer</description>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/PDVGUI/fileimport/DATFileImport.java
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ private void addModification(Modification modification, Boolean isVariable){
Double singleMass = modification.getMass();
ArrayList<String> residues = new ArrayList<>();

if (location.contains("N-term")){
if (location.contains("N-term") | location.contains("N_term")){

residues.add(location);
String modName = singleModName + " of N-term";
Expand All @@ -408,7 +408,7 @@ private void addModification(Modification modification, Boolean isVariable){
fixedModAAAndName.put(location, modName);
}

} else if (location.contains("C-term")){
} else if (location.contains("C-term") | location.contains("C_term")){

residues.add(location);
String modName = singleModName + " of C-term";
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.1";
private static final String VERSION = "1.7.2";

/**
* Main class
Expand Down

0 comments on commit c453ec2

Please sign in to comment.