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

use colorscale in compar sheets

parent 1d911e5e
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,7 @@
#include <tuple>
#include <pappsomspp/utils.h>
#include <odsstream/odscolorscale.h>
#include <QDebug>
......@@ -112,6 +113,9 @@ void ComparBaseSheet::writeProteinMatch(const ProteinMatch * p_protein_match) {
for (MsRunSp & msrun_sp: _msrun_list) {
writeComparValue(p_protein_match, ValidationState::validAndChecked, msrun_sp.get());
if(_first_cell_coordinate.isEmpty()) {
_first_cell_coordinate = _p_writer->getCellCoordinate();
}
}
......@@ -149,6 +153,14 @@ void ComparBaseSheet::writeIdentificationGroup(IdentificationGroup * p_ident) {
for (ProteinMatch * p_protein_match : protein_match_list) {
writeProteinMatch(p_protein_match);
}
if (!_first_cell_coordinate.isEmpty()) {
QString last_cell_coordinate = _p_writer->getCellCoordinate();
qDebug() << __FILE__ << " " << __FUNCTION__ << " " << __LINE__ << " " << _first_cell_coordinate<< " " << last_cell_coordinate;
OdsColorScale color_scale(_first_cell_coordinate, last_cell_coordinate);
_p_writer->addColorScale(color_scale);
_first_cell_coordinate = "";
}
_p_writer->writeLine();
_p_writer->writeLine();
qDebug() << "ComparBaseSheet::writeIdentificationGroup end";
......
......@@ -56,6 +56,8 @@ protected :
std::vector<MsRunSp> _msrun_list;
QString _title_sheet;
QString _first_cell_coordinate;
};
#endif // COMPARBASESHEET_H
......@@ -135,6 +135,7 @@ void PtmSpectraSheet::writeIdentificationGroup(IdentificationGroup * p_ident) {
_p_ptm_grouping_experiment = p_ident->getPtmGroupingExperiment();
writeHeaders(p_ident);
_p_ptm_grouping_experiment->get
for (const std::pair<unsigned int, GroupingGroupSp> & group_pair : p_ident->getGroupStore().getGroupMap()) {
std::vector<const PeptideEvidence *> peptide_evidence_list = group_pair.second.get()->getPeptideEvidenceList();
......
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