Skip to content

Commit

Permalink
Version 1.0.22
Browse files Browse the repository at this point in the history
Bugfix: for lineare peptide that where read in from csv it was not checked if the sequence also states the preceding and succeeding amino acids
  • Loading branch information
lfischer committed Dec 12, 2017
1 parent 5848057 commit 961497f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.rappsilberlab</groupId>
<artifactId>xiFDR</artifactId>
<version>1.0.21</version>
<version>1.0.22</version>
<packaging>jar</packaging>
<dependencies>
<dependency>
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/org/rappsilber/fdr/CSVinFDR.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ public void readCSV(CsvParser csv, CsvCondition filter) throws FileNotFoundExcep
// last aminoacid are leading and trailing aminoacids and not really part of the peptide
Matcher m1=hasTerminalAminoAcids.matcher(pepSeq1);
Matcher m2=hasTerminalAminoAcids.matcher(pepSeq2);
if ((pepSeq2 == null || pepSeq2.isEmpty()) && m1.matches()) {
pepSeq1 = m1.replaceAll("$1");
}

if (m1.matches() && m2.matches()) {
pepSeq1 = m1.replaceAll("$1");
pepSeq2 = m2.replaceAll("$1");
Expand Down

0 comments on commit 961497f

Please sign in to comment.