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

delta MH switched from theoretical - observed to observed - theoretical

parent 23c4f07c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -27,6 +27,7 @@
#include "ui_peptide_view.h"
PeptideListQactionColumn::PeptideListQactionColumn(PeptideListWindow * parent, PeptideListColumn column):QAction(parent) {
this->setText(PeptideTableModel::getTitle(column));
......
......@@ -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";
......
......@@ -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,
......
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