diff --git a/src/core/peptideevidence.h b/src/core/peptideevidence.h index 4e727774ddab1241266bf9027d1649cecbb6f765..8dc7dfa496e56a6d360d4f2f579f8d96cdcb2909 100644 --- a/src/core/peptideevidence.h +++ b/src/core/peptideevidence.h @@ -110,12 +110,12 @@ public : void updateAutomaticFilters(const AutomaticFilterParameters & automatic_filter_parameters); /** @brief get delta between theoretical mhplus mass and mhplus experimental mass - * theoretical mhplus mass - mhplus experimental mass + * mhplus experimental mass - theoretical mhplus mass */ pappso::mz getDeltaMass() const; /** @brief get delta in ppm between theoretical mhplus mass and mhplus experimental mass - * @return theoretical mhplus mass - mhplus experimental mass + * @return mhplus experimental mass - theoretical mhplus mass */ pappso::mz getPpmDeltaMass() const; diff --git a/src/gui/peptide_list_view/peptidelistwindow.cpp b/src/gui/peptide_list_view/peptidelistwindow.cpp index 5f0a477095e0af0d95591531cc630f31b9225afb..f313fe52764d8263f78322e20d617d1aaa95ec79 100644 --- a/src/gui/peptide_list_view/peptidelistwindow.cpp +++ b/src/gui/peptide_list_view/peptidelistwindow.cpp @@ -27,6 +27,7 @@ #include "ui_peptide_view.h" + PeptideListQactionColumn::PeptideListQactionColumn(PeptideListWindow * parent, PeptideListColumn column):QAction(parent) { this->setText(PeptideTableModel::getTitle(column)); diff --git a/src/gui/peptide_list_view/peptidetablemodel.cpp b/src/gui/peptide_list_view/peptidetablemodel.cpp index 396aac97e7a535dc4902869cbaab8ad44185654c..3fb37addb217f522f359a3fdb2f0fd0ed8065348 100644 --- a/src/gui/peptide_list_view/peptidetablemodel.cpp +++ b/src/gui/peptide_list_view/peptidetablemodel.cpp @@ -189,7 +189,7 @@ QVariant PeptideTableModel::data(const QModelIndex &index, int role ) const { return QVariant((qreal) (_p_protein_match->getPeptideMatchList().at(row).getPeptideEvidence()->getExperimentalMass()+pappso::MHPLUS)); break; case (std::int8_t)PeptideListColumn::theoretical_mhplus: - return QVariant((qreal) _p_protein_match->getPeptideMatchList().at(row).getPeptideEvidence()->getPeptideXtpSp().get()->getMz(1)); + return QVariant(_p_protein_match->getPeptideMatchList().at(row).getPeptideEvidence()->getPeptideXtpSp().get()->getMz(1)); break; case (std::int8_t)PeptideListColumn::delta_mhplus: return QVariant((qreal) _p_protein_match->getPeptideMatchList().at(row).getPeptideEvidence()->getDeltaMass()); @@ -369,10 +369,10 @@ const QString PeptideTableModel::getDescription(std::int8_t column) { return "peptide theoretical MH+"; break; case (std::int8_t) PeptideListColumn::delta_mhplus: - return "peptide mass difference in dalton between theoretical mass and observed mass (theoretical - observed)"; + return "peptide mass difference in dalton between observed mass and theoretical mass (observed - theoretical)"; break; case (std::int8_t) PeptideListColumn::delta_ppm: - return "peptide mass difference in ppm between theoretical mass and observed mass"; + return "peptide mass difference in ppm between observed mass and theoretical mass"; break; case (std::int8_t) PeptideListColumn::hyperscore: return "X!Tandem hyperscore"; diff --git a/src/gui/peptide_list_view/peptidetablemodel.h b/src/gui/peptide_list_view/peptidetablemodel.h index 5aa61a294e7b17faf044e8f61500e9b8dca05750..cde92b4753613c6d3a77d2d247567f4a1d1f4271 100644 --- a/src/gui/peptide_list_view/peptidetablemodel.h +++ b/src/gui/peptide_list_view/peptidetablemodel.h @@ -48,8 +48,8 @@ enum class PeptideListColumn: std::int8_t { used=13, subgroups=14, Evalue=15, - theoretical_mhplus=16, - experimental_mhplus=17, + experimental_mhplus=16, + theoretical_mhplus=17, delta_mhplus=18, delta_ppm=19, hyperscore=20,