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

label column added in spectra sheet

parent 187ec63d
No related branches found
No related tags found
No related merge requests found
......@@ -70,6 +70,10 @@ void SpectraSheet::writeHeaders(IdentificationGroup * p_ident) {
_p_writer->writeCell("Sequence (top)");
_p_writer->setCellAnnotation("peptide modifications (best match)");
_p_writer->writeCell("Modifs (top)");
if (_p_project->getLabelingMethodSp().get() != nullptr) {
_p_writer->setCellAnnotation("peptide label (best match)");
_p_writer->writeCell("Label (top)");
}
_p_writer->writeCell("Best E-value");
_p_writer->writeCell("Best hyperscore");
......@@ -94,9 +98,18 @@ void SpectraSheet::writeBestPeptideMatch(const GroupingGroup * p_group,const Pep
_p_writer->writeCell(p_peptide_match->getRetentionTime());
_p_writer->writeCell(p_peptide_match->getPeptideXtpSp().get()->getSequence());
_p_writer->writeCell(p_peptide_match->getPeptideXtpSp().get()->getModifString());
if (_p_project->getLabelingMethodSp().get() != nullptr) {
const Label * p_label = p_peptide_match->getPeptideXtpSp().get()->getLabel();
if (p_label != nullptr) {
_p_writer->writeCell(p_label->getXmlId());
}
else {
_p_writer->writeEmptyCell();
}
}
_p_writer->writeCell(p_peptide_match->getEvalue());
_p_writer->writeCell(p_peptide_match->getParam(PeptideMatchParam::tandem_hyperscore).toDouble());
}
......@@ -124,7 +137,7 @@ void SpectraSheet::writeIdentificationGroup(IdentificationGroup * p_ident) {
p_best_peptide_match = peptide_match;
}
//change spectra :
unsigned int arank = p_best_peptide_match->getGrpPeptideSp().get()->getRank();
unsigned int arank = p_best_peptide_match->getGrpPeptideSp().get()->getRank();
unsigned int ascan = p_best_peptide_match->getScan();
unsigned int brank = peptide_match->getGrpPeptideSp().get()->getRank();
unsigned int bscan = peptide_match->getScan();
......
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