libpappsomspp
Library for mass spectrometry
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 <QTextStream>
26 #include <iostream>
27 #include "grpgroupingmonitor.h"
28 
29 namespace pappso
30 {
31 
32 
34 {
35 }
36 
38 {
39  mp_outStream = new QTextStream(stderr, QIODevice::WriteOnly);
40 }
41 
43 {
44 
45  mp_outStream->flush();
46  delete mp_outStream;
47 }
48 
49 void
50 GrpGroupingMonitor::startGrouping(std::size_t total_number_protein,
51  std::size_t total_number_peptide)
52 {
53  m_totalNumberProtein = total_number_protein;
54  m_totalNumberPeptide = total_number_peptide;
55  m_currentProtein = 0;
56  (*mp_outStream) << "start grouping " << m_totalNumberProtein << " proteins "
57  << total_number_peptide << " peptides\n";
58  mp_outStream->flush();
59 }
60 void
62 {
64  (*mp_outStream) << "grouping protein " << m_currentProtein << " on "
65  << m_totalNumberProtein << "\n";
66  mp_outStream->flush();
67 }
68 void
70  std::size_t total_number_group)
71 {
72  (*mp_outStream) << "removing non informative subgroups in all groups ("
73  << total_number_group << ")\n";
74  mp_outStream->flush();
75 }
76 void
78  std::size_t total_number_group)
79 {
80  (*mp_outStream) << "removing non informative subgroups finished, remaining "
81  << total_number_group << " groups\n";
82  mp_outStream->flush();
83 }
84 void
86 {
87  (*mp_outStream) << "removing non informative on a single group\n";
88  mp_outStream->flush();
89 }
90 void
91 GrpGroupingMonitor::startNumberingAllGroups(std::size_t total_number_group)
92 {
93  (*mp_outStream) << "numbering " << total_number_group << " groups\n";
94  mp_outStream->flush();
95 }
96 void
98 {
99  (*mp_outStream) << "grouping finished\n";
100  mp_outStream->flush();
101 }
102 
103 } // 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