libpappsomspp
Library for mass spectrometry
Toggle main menu visibility
Loading...
Searching...
No Matches
grpgroup.h
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
26
#pragma once
27
28
29
#include <list>
30
#include "
grpsubgroup.h
"
31
#include "
grpmappeptidetosubgroupset.h
"
32
33
namespace
pappso
34
{
35
36
class
GrpExperiment
;
37
38
class
GrpGroup
;
39
typedef
std::shared_ptr<GrpGroup>
GrpGroupSp
;
40
typedef
std::shared_ptr<const GrpGroup>
GrpGroupSpConst
;
41
42
43
class
PMSPP_LIB_DECL
GrpGroup
44
{
45
friend
class
GrpExperiment
;
46
47
private
:
48
std::list<GrpSubGroupSp>
m_subGroupList
;
49
unsigned
int
m_groupNumber
= 0;
50
GrpPeptideSet
m_peptideSet
;
51
52
GrpMapPeptideToSubGroupSet
m_mapPeptideToSubGroupSet
;
53
54
protected
:
55
const
std::list<GrpSubGroupSp> &
getSubGroupSpList
()
const
;
56
GrpGroup
(
GrpSubGroupSp
&grpSubGroupSp);
57
GrpGroupSp
makeGrpGroupSp
();
58
bool
removeFirstNonInformativeSubGroup
();
59
void
check
()
const
;
60
61
62
public
:
63
GrpGroup
(
const
GrpGroup
&grpGroupSp);
64
~GrpGroup
();
65
bool
operator<
(
const
GrpGroup
&other)
const
;
66
bool
containsAny
(
const
GrpPeptideSet
&peptideSet)
const
;
67
void
addSubGroupSp
(
const
GrpSubGroupSp
&grpSubGroupSp);
68
void
addGroup
(
GrpGroup
*p_group_to_add);
69
void
numbering
();
70
void
setGroupNumber
(
unsigned
int
i);
71
bool
removeNonInformativeSubGroups
();
72
const
QString
getGroupingId
()
const
;
73
unsigned
int
getGroupNumber
()
const
;
74
const
GrpPeptideSet
&
getGrpPeptideSet
()
const
;
75
std::vector<GrpSubGroupSpConst>
getGrpSubGroupSpList
()
const
;
76
};
77
78
79
}
// namespace pappso
pappso::GrpExperiment
Definition
grpexperiment.h:42
pappso::GrpGroup
Definition
grpgroup.h:44
pappso::GrpGroup::makeGrpGroupSp
GrpGroupSp makeGrpGroupSp()
Definition
grpgroup.cpp:97
pappso::GrpGroup::check
void check() const
Definition
grpgroup.cpp:124
pappso::GrpGroup::removeNonInformativeSubGroups
bool removeNonInformativeSubGroups()
Definition
grpgroup.cpp:319
pappso::GrpGroup::setGroupNumber
void setGroupNumber(unsigned int i)
Definition
grpgroup.cpp:234
pappso::GrpGroup::GrpExperiment
friend class GrpExperiment
Definition
grpgroup.h:45
pappso::GrpGroup::getGroupNumber
unsigned int getGroupNumber() const
Definition
grpgroup.cpp:77
pappso::GrpGroup::containsAny
bool containsAny(const GrpPeptideSet &peptideSet) const
Definition
grpgroup.cpp:103
pappso::GrpGroup::removeFirstNonInformativeSubGroup
bool removeFirstNonInformativeSubGroup()
Definition
grpgroup.cpp:271
pappso::GrpGroup::m_subGroupList
std::list< GrpSubGroupSp > m_subGroupList
Definition
grpgroup.h:48
pappso::GrpGroup::GrpGroup
GrpGroup(GrpSubGroupSp &grpSubGroupSp)
Definition
grpgroup.cpp:37
pappso::GrpGroup::m_groupNumber
unsigned int m_groupNumber
Definition
grpgroup.h:49
pappso::GrpGroup::m_mapPeptideToSubGroupSet
GrpMapPeptideToSubGroupSet m_mapPeptideToSubGroupSet
Definition
grpgroup.h:52
pappso::GrpGroup::getGrpPeptideSet
const GrpPeptideSet & getGrpPeptideSet() const
Definition
grpgroup.cpp:72
pappso::GrpGroup::numbering
void numbering()
Definition
grpgroup.cpp:248
pappso::GrpGroup::getSubGroupSpList
const std::list< GrpSubGroupSp > & getSubGroupSpList() const
Definition
grpgroup.cpp:66
pappso::GrpGroup::addSubGroupSp
void addSubGroupSp(const GrpSubGroupSp &grpSubGroupSp)
Definition
grpgroup.cpp:147
pappso::GrpGroup::addGroup
void addGroup(GrpGroup *p_group_to_add)
Definition
grpgroup.cpp:110
pappso::GrpGroup::operator<
bool operator<(const GrpGroup &other) const
Definition
grpgroup.cpp:91
pappso::GrpGroup::m_peptideSet
GrpPeptideSet m_peptideSet
Definition
grpgroup.h:50
pappso::GrpGroup::getGroupingId
const QString getGroupingId() const
Definition
grpgroup.cpp:82
pappso::GrpGroup::getGrpSubGroupSpList
std::vector< GrpSubGroupSpConst > getGrpSubGroupSpList() const
Definition
grpgroup.cpp:55
pappso::GrpMapPeptideToSubGroupSet
Definition
grpmappeptidetosubgroupset.h:37
pappso::GrpPeptideSet
Definition
grppeptideset.h:36
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition
export-import-config.h:14
grpmappeptidetosubgroupset.h
grpsubgroup.h
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition
aa.cpp:39
pappso::GrpSubGroupSp
std::shared_ptr< GrpSubGroup > GrpSubGroupSp
Definition
grpsubgroup.h:39
pappso::GrpGroupSpConst
std::shared_ptr< const GrpGroup > GrpGroupSpConst
Definition
grpgroup.h:40
pappso::GrpGroupSp
std::shared_ptr< GrpGroup > GrpGroupSp
Definition
grpgroup.h:39
pappsomspp
core
grouping
grpgroup.h
Generated on
for libpappsomspp by
1.17.0