libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
scorevalues.cpp
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2025 Aurélien Berthier
3
* <aurelien.berthier@ls2n.fr>
4
*
5
*
6
>>>>>>> main:src/pappsomspp/processing/specpeptidoms/scorevalues.cpp
7
* This program 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
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
21
#include "
scorevalues.h
"
22
23
namespace
pappso
24
{
25
namespace
specpeptidoms
26
{
27
ScoreValues::ScoreValues
()
28
{
29
m_scoreTable
[(uint8_t)
ScoreType::foundDouble
] = 10;
30
m_scoreTable
[(uint8_t)
ScoreType::found
] = 7;
31
m_scoreTable
[(uint8_t)
ScoreType::foundShiftDouble
] = -6;
32
m_scoreTable
[(uint8_t)
ScoreType::foundShift
] = -8;
33
m_scoreTable
[(uint8_t)
ScoreType::notFound
] = -4;
34
m_scoreTable
[(uint8_t)
ScoreType::init
] = -19;
35
}
36
37
ScoreValues::ScoreValues
(
const
ScoreValues
&other)
38
{
39
std::copy(other.
m_scoreTable
, other.
m_scoreTable
+ 10,
m_scoreTable
);
40
}
41
42
ScoreValues::~ScoreValues
()
43
{
44
}
45
46
int
47
ScoreValues::get
(
ScoreType
type)
const
48
{
49
return
m_scoreTable
[(std::uint8_t)type];
50
}
51
52
const
ScoreValues
&
53
ScoreValues::operator=
(
const
ScoreValues
&other)
54
{
55
std::copy(other.
m_scoreTable
, other.
m_scoreTable
+ 10,
m_scoreTable
);
56
return
*
this
;
57
}
58
59
}
// namespace specpeptidoms
60
}
// namespace pappso
pappso::specpeptidoms::ScoreValues
Definition
scorevalues.h:28
pappso::specpeptidoms::ScoreValues::get
int get(ScoreType type) const
Definition
scorevalues.cpp:47
pappso::specpeptidoms::ScoreValues::m_scoreTable
int m_scoreTable[10]
Definition
scorevalues.h:40
pappso::specpeptidoms::ScoreValues::operator=
const ScoreValues & operator=(const ScoreValues &other)
Definition
scorevalues.cpp:53
pappso::specpeptidoms::ScoreValues::~ScoreValues
virtual ~ScoreValues()
Definition
scorevalues.cpp:42
pappso::specpeptidoms::ScoreValues::ScoreValues
ScoreValues()
Definition
scorevalues.cpp:27
pappso::specpeptidoms
Definition
correctiontree.h:40
pappso::specpeptidoms::ScoreType
ScoreType
Definition
types.h:41
pappso::specpeptidoms::ScoreType::foundDouble
@ foundDouble
Definition
types.h:42
pappso::specpeptidoms::ScoreType::notFound
@ notFound
Definition
types.h:46
pappso::specpeptidoms::ScoreType::found
@ found
Definition
types.h:43
pappso::specpeptidoms::ScoreType::foundShift
@ foundShift
Definition
types.h:45
pappso::specpeptidoms::ScoreType::foundShiftDouble
@ foundShiftDouble
Definition
types.h:44
pappso::specpeptidoms::ScoreType::init
@ init
Definition
types.h:47
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition
aa.cpp:39
scorevalues.h
pappsomspp
core
processing
specpeptidoms
scorevalues.cpp
Generated on Tue Sep 23 2025 09:36:36 for libpappsomspp by
1.13.2