Skip to content

Commit

Permalink
version 1.1.0
Browse files Browse the repository at this point in the history
reports the scores even when there is no change in the PTM localization
  • Loading branch information
smdb21 committed Mar 2, 2021
1 parent 17ff142 commit b95e53e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>edu.scripps.yates</groupId>
<artifactId>luciphor_dtaselect_integrator</artifactId>
<version>1.0.2</version>
<version>1.1.0</version>
<name>luciphor_dtaselect_integrator</name>
<description>Program that takes output from luciphor and some thresholds on its scores and integrates the results into a DTASelect-filter.txt file.</description>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ private void processDTASelect(Map<String, LuciphorEntry> filteredLuciphorEntries
if (line.startsWith("Unique\t")) {
isPSMHeader = true;
passedPSMHeader = true;
} else if (line.startsWith("\t") || line.startsWith("*\t")) {
} else if (line.startsWith("\t")) {
isPSMLine = true;
} else if (line.startsWith("*\t")) {
isPSMLine = true;
} else {
isPSMLine = false;
Expand All @@ -105,10 +107,10 @@ private void processDTASelect(Map<String, LuciphorEntry> filteredLuciphorEntries
// replace sequence
final String originalSequence = split[indexByHeader.get(DTA_COL_SEQUENCE)];
final String sequenceToReplace = luciphorEntry.getFormattedPredictedSequence(originalSequence);
if (originalSequence.equals(sequenceToReplace)) {
fw.write(line + "\t\t\t\n");
continue;
}
// if (originalSequence.equals(sequenceToReplace)) {
// fw.write(line + "\t\t\t\n");
// continue;
// }
// create new array of values
final List<String> newLineValues = new ArrayList<String>();
for (int i = 0; i < split.length; i++) {
Expand All @@ -119,7 +121,12 @@ private void processDTASelect(Map<String, LuciphorEntry> filteredLuciphorEntries
}
}
// now add at the end the new columns
newLineValues.add(originalSequence);
if (originalSequence.equals(sequenceToReplace)) {
newLineValues.add("");
} else {
numChanged++;
newLineValues.add(originalSequence);
}
newLineValues.add(String.valueOf(luciphorEntry.getGlobalFLR()));
newLineValues.add(String.valueOf(luciphorEntry.getLocalFLR()));
// get the new line as string
Expand All @@ -134,7 +141,7 @@ private void processDTASelect(Map<String, LuciphorEntry> filteredLuciphorEntries
}
// write the new line
fw.write(newLine.toString() + "\n");
numChanged++;

continue;
} else {
fw.write(line + "\t\t\t\n");
Expand Down

0 comments on commit b95e53e

Please sign in to comment.