libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
grpgroupingmonitor.cpp
Go to the documentation of this file.
1
2/*******************************************************************************
3 * Copyright (c) 2015 Olivier Langella <Olivier.Langella@moulon.inra.fr>.
4 *
5 * This file is part of the PAPPSOms++ library.
6 *
7 * PAPPSOms++ is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * PAPPSOms++ is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with PAPPSOms++. If not, see <http://www.gnu.org/licenses/>.
19 *
20 * Contributors:
21 * Olivier Langella <Olivier.Langella@moulon.inra.fr> - initial API and
22 *implementation
23 ******************************************************************************/
24
25#include <QIODevice>
26#include <QTextStream>
27#include <iostream>
28#include "grpgroupingmonitor.h"
29
30namespace pappso
31{
32
33
37
39{
40 mp_outStream = new QTextStream(stderr, QIODevice::WriteOnly);
41}
42
49
50void
51GrpGroupingMonitor::startGrouping(std::size_t total_number_protein,
52 std::size_t total_number_peptide)
53{
54 m_totalNumberProtein = total_number_protein;
55 m_totalNumberPeptide = total_number_peptide;
57 (*mp_outStream) << "start grouping " << m_totalNumberProtein << " proteins "
58 << total_number_peptide << " peptides\n";
59 mp_outStream->flush();
60}
61void
63{
65 (*mp_outStream) << "grouping protein " << m_currentProtein << " on " << m_totalNumberProtein
66 << "\n";
67 mp_outStream->flush();
68}
69void
71{
72 (*mp_outStream) << "removing non informative subgroups in all groups (" << total_number_group
73 << ")\n";
74 mp_outStream->flush();
75}
76void
78{
79 (*mp_outStream) << "removing non informative subgroups finished, remaining " << total_number_group
80 << " groups\n";
81 mp_outStream->flush();
82}
83void
85{
86 (*mp_outStream) << "removing non informative on a single group\n";
87 mp_outStream->flush();
88}
89void
90GrpGroupingMonitor::startNumberingAllGroups(std::size_t total_number_group)
91{
92 (*mp_outStream) << "numbering " << total_number_group << " groups\n";
93 mp_outStream->flush();
94}
95void
97{
98 (*mp_outStream) << "grouping finished\n";
99 mp_outStream->flush();
100}
101
102} // namespace pappso
virtual void startNumberingAllGroups(std::size_t total_number_group)
virtual void removingNonInformativeSubGroupsInGroup()
virtual void startRemovingNonInformativeSubGroupsInAllGroups(std::size_t total_number_group)
virtual void startGrouping(std::size_t total_number_protein, std::size_t total_number_peptide)
virtual void stopRemovingNonInformativeSubGroupsInAllGroups(std::size_t total_number_group)
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39