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

new delta MHplus column

parent 1deb866f
No related branches found
No related tags found
No related merge requests found
......@@ -339,7 +339,7 @@ const QString PeptideTableModel::getDescription(std::int8_t column) {
return "peptide theoretical MH+";
break;
case (std::int8_t) PeptideListColumn::delta_mhplus:
return "peptide mass difference betwenn observed mass and theoretical mass";
return "peptide mass difference between observed mass and theoretical mass";
break;
case (std::int8_t) PeptideListColumn::hyperscore:
return "X!Tandem hyperscore";
......
......@@ -43,6 +43,7 @@ ProteinSheet::ProteinSheet (OdsExport * p_ods_export, CalcWriterInterface * p_wr
writeIdentificationGroup(p_ident);
}
}
void ProteinSheet::writeCellHeader(ProteinListColumn column) {
qDebug() << "ProteinSheet::writeCellHeader begin " << (std::int8_t) column;
_p_writer->setCellAnnotation(ProteinTableModel::getDescription(column));
......
......@@ -45,6 +45,14 @@ SpectraSheet::SpectraSheet (OdsExport * p_ods_export, CalcWriterInterface * p_wr
}
void SpectraSheet::writeCellHeader(PeptideListColumn column) {
qDebug() << "SpectraSheet::writeCellHeader begin " << (std::int8_t) column;
_p_writer->setCellAnnotation(PeptideTableModel::getDescription(column));
_p_writer->writeCell(PeptideTableModel::getTitle(column));
qDebug() << "SpectraSheet::writeCellHeader end" ;
}
void SpectraSheet::writeHeaders(IdentificationGroup * p_ident) {
// Group ID Peptide ID Sample Scan Rt (minutes) Sequence (top) Modifs (top) Number of subgroups Sub-groups Ids Best E-value Best hyperscore m/z Obs Charge MH+ Obs MH+ theo DeltaMH+ Delta-ppm
......@@ -80,6 +88,7 @@ void SpectraSheet::writeHeaders(IdentificationGroup * p_ident) {
}
_p_writer->writeCell("Best E-value");
_p_writer->writeCell("Best hyperscore");
writeCellHeader(PeptideListColumn::delta_mhplus);
}
......@@ -114,6 +123,7 @@ void SpectraSheet::writeBestPeptideEvidence(const GroupingGroup * p_group,const
}
_p_writer->writeCell(p_peptide_evidence->getEvalue());
_p_writer->writeCell(p_peptide_evidence->getParam(PeptideEvidenceParam::tandem_hyperscore).toDouble());
_p_writer->writeCell(p_peptide_evidence->getDeltaMass());
}
......
......@@ -33,6 +33,7 @@
#include "../../core/project.h"
#include <odsstream/calcwriterinterface.h>
#include "../../core/proteinmatch.h"
#include "../../gui/peptide_list_view/peptidelistwindow.h"
#include "odsexport.h"
class SpectraSheet
......@@ -43,6 +44,7 @@ private :
void writeIdentificationGroup(IdentificationGroup * p_ident);
void writeHeaders(IdentificationGroup * p_ident);
void writeBestPeptideEvidence(const GroupingGroup * p_group, const PeptideEvidence * p_peptide_evidence);
void writeCellHeader(PeptideListColumn column);
private :
OdsExport * _p_ods_export;
......
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