98 qDebug() <<
"test_peptide_model_remove_complementary.getCountSharedPeaks()="
100 <<
" m_betterPeptideModel.getCountSharedPeaks()="
105 qDebug() <<
"replace with " << test_peptide_model_remove_complementary.
toString();
119 qDebug() <<
"replace with " << test_peptide_model_remove_negative.
toString();
143 qDebug() << best_count_shared_peaks;
150 qDebug() <<
"i =" << i;
159 PeptideModel test_peptide_model_move_offset = better_peptide_model_move_offset;
160 test_peptide_model_move_offset.at(i).mass_difference = 0;
161 qDebug() << test_peptide_model_move_offset.
toString();
167 if(test_peptide_model_move_offset.at(j).bracket ==
false)
169 if(test_peptide_model_move_offset.at(j).mass_difference != 0.0)
172 test_peptide_model_move_offset.at(j).mass_difference = mass_diff;
175 qDebug() << test_peptide_model_move_offset.
toString() <<
" "
177 << best_count_shared_peaks;
181 better_peptide_model_move_offset.
copyDeep(test_peptide_model_move_offset);
186 test_peptide_model_move_offset = better_peptide_model_move_offset;
209 qDebug() << best_count_shared_peaks;
220 test_peptide_model_for_neutral_loss.at(i).mass_difference = 0;
223 qDebug() << test_peptide_model_for_neutral_loss.
toString() <<
" "
225 << best_count_shared_peaks;
229 better_peptide_model_for_neutral_loss.
copyDeep(test_peptide_model_for_neutral_loss);
233 if(better_peptide_model_for_neutral_loss.size() > 0)
244 PeptideModel better_peptide_model_cumulating_residual_mass_delta;
255 test_peptide_model_cumulating_residual_mass_delta.at(i).mass_difference += mass_delta;
258 best_count_shared_peaks)
260 best_count_shared_peaks =
262 better_peptide_model_cumulating_residual_mass_delta.
copyDeep(
263 test_peptide_model_cumulating_residual_mass_delta);
267 if(better_peptide_model_cumulating_residual_mass_delta.size() > 0)
PostTreatment(pappso::PrecisionPtr precision, const PeptideModel &peptide_model)
const PeptideModel & getOriginalPeptideModel() const
pappso::PrecisionPtr m_precision
void findBetterPeptideModel()
whole processus to find a better peptide model
void tryToCumulateOffSets()
try to assign residual mass delta to non aligned elements
PeptideModel m_betterPeptideModel
bool findReplaceMutations()
const PeptideModel & getBetterPeptideModel() const
PeptideModel m_originalPeptideModel
void tryToRemoveOffsets()
try to remove offset (mass difference)
void tryBetterPositionOffsets()
try to move offset (mass difference)