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

new columns in peptide list : MH+ delta mass

parent 991bfff5
No related branches found
No related tags found
No related merge requests found
......@@ -51,8 +51,8 @@ void PeptideMatch::setExperimentalMass(pappso::pappso_double exp_mass) {
void PeptideMatch::setStart(unsigned int start) {
_start =start;
}
pappso::mz PeptideMatch::getDeltaMhplus() const {
return (_peptide_sp.get()->getMass() - _exp_mass);
pappso::mz PeptideMatch::getDeltaMass() const {
return (_exp_mass - _peptide_sp.get()->getMass());
}
unsigned int PeptideMatch::getStart() const {
return _start;
......
......@@ -71,9 +71,9 @@ public :
* */
void updateAutomaticFilters(const AutomaticFilterParameters & automatic_filter_parameters);
/** @brief get delta between theoretical mass and experimental mass (z=1)
/** @brief get delta between theoretical mass and experimental mass
*/
pappso::mz getDeltaMhplus() const;
pappso::mz getDeltaMass() const;
private :
pappso::MsRunIdSp _msrunid_sp;
......
......@@ -224,7 +224,7 @@ QVariant PeptideTableModel::data(const QModelIndex &index, int role ) const {
}
if (col ==14) {
return QVariant((qreal) _p_protein_match->getPeptideMatchList().at(row)->getDeltaMhplus());
return QVariant((qreal) _p_protein_match->getPeptideMatchList().at(row)->getDeltaMass());
}
}
......
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