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 <QIODevice>
26#include <QTextStream>
27#include <iostream>
28#include "grpgroupingmonitor.h"
29
30namespace pappso
31{
32
33
35{
36}
37
39{
40 mp_outStream = new QTextStream(stderr, QIODevice::WriteOnly);
41}
42
44{
45
46 mp_outStream->flush();
47 delete mp_outStream;
48}
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 "
66 << m_totalNumberProtein << "\n";
67 mp_outStream->flush();
68}
69void
71 std::size_t total_number_group)
72{
73 (*mp_outStream) << "removing non informative subgroups in all groups ("
74 << total_number_group << ")\n";
75 mp_outStream->flush();
76}
77void
79 std::size_t total_number_group)
80{
81 (*mp_outStream) << "removing non informative subgroups finished, remaining "
82 << total_number_group << " groups\n";
83 mp_outStream->flush();
84}
85void
87{
88 (*mp_outStream) << "removing non informative on a single group\n";
89 mp_outStream->flush();
90}
91void
92GrpGroupingMonitor::startNumberingAllGroups(std::size_t total_number_group)
93{
94 (*mp_outStream) << "numbering " << total_number_group << " groups\n";
95 mp_outStream->flush();
96}
97void
99{
100 (*mp_outStream) << "grouping finished\n";
101 mp_outStream->flush();
102}
103
104} // 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