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

round using 3 digits before selecting 2 digits

parent 19a17f67
No related branches found
Tags v1.8b
No related merge requests found
......@@ -175,6 +175,8 @@ Sample* GpEngine::getSampleInstance(QString name) {
Peptide * GpEngine::getPeptideInstance(QString seq, gp_double mh) {
std::map<QString, Peptide*>::iterator it;
//round 3 digits before:
mh = round(mh * (gp_double)1000)/(gp_double) 1000;
QString data = seq.replace("L", "I") + QString("|%1").arg((unsigned long) round(mh * 100));
it = this->_peptideList.find(data);
if (it != _peptideList.end()) {
......
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