Skip to content

Commit

Permalink
Clean up some unnecessary 2-D Q-value code
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgeiszler committed May 2, 2024
1 parent 59c5fcc commit e350d4f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@ public int compareTo(SpecProbQ o) {
i++;
}
}

// Extract spectrum to q-val and probability mappings in matched order
HashMap<String, Double> qValsMap = new HashMap<>();
for (SpecProbQ spq : spqs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,10 @@ public void addIon(float intensity, float massError, boolean isDecoy) {
public void addIon(float intensity, float massError, boolean isDecoy) {
if (!isDecoy) {
if (intensity > 0.0f) { // Only include matched ions, unmatched ions have negative intensity
int intIndx = (int) (intensity);
int massErrorIndx = (int) (massError * 100.0);
this.targetPMF.addVal(intIndx, massErrorIndx);
datapoints.addRow(massError, intensity, isDecoy);
}
} else {
if (intensity > 0.0f) { // Only include matched ions, unmatched ions have negative intensity
int intIndx = (int) (intensity);
int massErrorIndx = (int) (massError * 100.0);
this.decoyPMF.addVal(intIndx, massErrorIndx);
datapoints.addRow(massError, intensity, isDecoy);
}
}
Expand Down

0 comments on commit e350d4f

Please sign in to comment.