libpappsomspp
Library for mass spectrometry
scorevalues.cpp
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2025 Aurélien Berthier
3
* <aurelien.berthier@ls2n.fr>
4
*
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
#include "
scorevalues.h
"
20
21
namespace
pappso
22
{
23
namespace
specpeptidoms
24
{
25
ScoreValues::ScoreValues
()
26
{
27
m_scoreTable
[(uint8_t)
ScoreType::foundDouble
] = 10;
28
m_scoreTable
[(uint8_t)
ScoreType::found
] = 7;
29
m_scoreTable
[(uint8_t)
ScoreType::foundShiftDouble
] = -6;
30
m_scoreTable
[(uint8_t)
ScoreType::foundShift
] = -8;
31
m_scoreTable
[(uint8_t)
ScoreType::notFound
] = -4;
32
m_scoreTable
[(uint8_t)
ScoreType::init
] = -19;
33
}
34
35
ScoreValues::ScoreValues
(
const
ScoreValues
&other)
36
{
37
std::copy(other.
m_scoreTable
, other.
m_scoreTable
+ 10,
m_scoreTable
);
38
}
39
40
ScoreValues::~ScoreValues
()
41
{
42
}
43
44
int
45
ScoreValues::get
(
ScoreType
type)
46
{
47
return
m_scoreTable
[(std::uint8_t)type];
48
}
49
50
const
ScoreValues
&
51
ScoreValues::operator=
(
const
ScoreValues
&other)
52
{
53
std::copy(other.
m_scoreTable
, other.
m_scoreTable
+ 10,
m_scoreTable
);
54
return
*
this
;
55
}
56
57
}
// namespace specpeptidoms
58
}
// namespace pappso
pappso::specpeptidoms::ScoreValues
Definition:
scorevalues.h:28
pappso::specpeptidoms::ScoreValues::get
int get(ScoreType type)
Definition:
scorevalues.cpp:45
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:51
pappso::specpeptidoms::ScoreValues::~ScoreValues
virtual ~ScoreValues()
Definition:
scorevalues.cpp:40
pappso::specpeptidoms::ScoreValues::ScoreValues
ScoreValues()
Definition:
scorevalues.cpp:25
pappso::specpeptidoms::ScoreType
ScoreType
Definition:
types.h:41
pappso::specpeptidoms::ScoreType::foundDouble
@ foundDouble
pappso::specpeptidoms::ScoreType::notFound
@ notFound
pappso::specpeptidoms::ScoreType::found
@ found
pappso::specpeptidoms::ScoreType::foundShift
@ foundShift
pappso::specpeptidoms::ScoreType::foundShiftDouble
@ foundShiftDouble
pappso::specpeptidoms::ScoreType::init
@ init
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition:
aa.cpp:39
scorevalues.h
pappsomspp
processing
specpeptidoms
scorevalues.cpp
Generated on Wed Sep 3 2025 07:08:27 for libpappsomspp by
1.9.4