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

computing ppm delta fixed

parent 785d7f84
No related branches found
No related tags found
No related merge requests found
......@@ -126,8 +126,8 @@ pappso::mz PeptideEvidence::getDeltaMass() const {
pappso::mz PeptideEvidence::getPpmDeltaMass() const {
//return (_peptide_sp.get()->getMz(1) - (_exp_mass+pappso::MHPLUS));
pappso::pappso_double diff = getDeltaMass();
while (diff < -0.5) {
diff = diff + pappso::DIFFC12C13;
while (diff > 0.5) {
diff = diff - pappso::DIFFC12C13;
}
diff = (diff / getPeptideXtpSp().get()->getMz(1)) * pappso::ONEMILLION;
return diff;
......
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