Skip to content
Snippets Groups Projects
Commit 484dd156 authored by Olivier Langella's avatar Olivier Langella
Browse files

emPAI computing error fixed : all components are treated as double

parent 6eefa061
No related branches found
No related tags found
No related merge requests found
...@@ -181,14 +181,14 @@ public class Match implements Comparable<Match>, GrpProtMatch { ...@@ -181,14 +181,14 @@ public class Match implements Comparable<Match>, GrpProtMatch {
public double getEmPAI() { public double getEmPAI() {
// compute emPAI, Ishihama 2006 // compute emPAI, Ishihama 2006
double value = Math.pow(10.0, getPAI()) - 1; double value = Math.pow(10.0, getPAI()) - (double) 1.0;
return value; return value;
} }
public double getEmPAIbyMsRun(MsRun samp) throws MSMSException { public double getEmPAIbyMsRun(MsRun samp) throws MSMSException {
// compute emPAI, Ishihama 2006 // compute emPAI, Ishihama 2006
double value = Math.pow(10.0, getPAIbyMsRun(samp)) - 1; double value = Math.pow(10.0, getPAIbyMsRun(samp)) - (double) 1.0;
return value; return value;
} }
......
...@@ -181,14 +181,14 @@ public class HashSampleScanSetProt extends HashSampleScanSet { ...@@ -181,14 +181,14 @@ public class HashSampleScanSetProt extends HashSampleScanSet {
public double getEmPAI() { public double getEmPAI() {
// compute emPAI, Ishihama 2006 // compute emPAI, Ishihama 2006
double value = Math.pow(10.0, getPAI()) - 1; double value = Math.pow(10.0, getPAI()) - (double) 1.0;
return value; return value;
} }
public double getEmPAIbyMsRun(MsRun samp) throws MSMSException { public double getEmPAIbyMsRun(MsRun samp) throws MSMSException {
// compute emPAI, Ishihama 2006 // compute emPAI, Ishihama 2006
double value = Math.pow(10.0, getPAIbyMsRun(samp)) - 1; double value = Math.pow(10.0, getPAIbyMsRun(samp)) - (double) 1.0;
return value; return value;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment