Commit 0c90418d authored by Olivier Langella's avatar Olivier Langella
Browse files

if PSIMOD acc is given for isotope label, take it over the mass value given by the user

parent b1fe1d9e
......@@ -34,13 +34,14 @@ void IsotopeLabelModification::setPappsoModification (pappso::AaModificationP mo
_pappso_modification = modification;
if (_pappso_modification != nullptr) {
if (!pappso::MassRange(_mass, pappso::Precision::getDaltonInstance(0.001)).contains(_pappso_modification->getMass())) {
/*
if (!pappso::MassRange(_mass, pappso::Precision::getDaltonInstance(0.001)).contains(_pappso_modification->getMass())) {
throw mcqError(QObject::tr("Error in IsotopeLabelModification::setPappsoModification :\n the PSIMOD modification mass (%1 %2) differs from the one expected (%3)")
.arg(_pappso_modification->getAccession()).arg(QString::number(_pappso_modification->getMass(), 'g', 8)).arg(QString::number(_mass, 'g', 8)));
}
throw mcqError(QObject::tr("Error in IsotopeLabelModification::setPappsoModification :\n the PSIMOD modification mass (%1 %2) differs from the one expected (%3)")
.arg(_pappso_modification->getAccession()).arg(QString::number(_pappso_modification->getMass(), 'g', 8)).arg(QString::number(_mass, 'g', 8)));
}
*/
_mass = _pappso_modification->getMass();
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment