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
21namespace pappso
22{
23namespace specpeptidoms
24{
26{
28 m_scoreTable[(uint8_t)ScoreType::found] = 7;
31 m_scoreTable[(uint8_t)ScoreType::notFound] = -4;
32 m_scoreTable[(uint8_t)ScoreType::init] = -19;
33}
34
36{
37 std::copy(other.m_scoreTable, other.m_scoreTable + 10, m_scoreTable);
38}
39
41{
42}
43
44int
46{
47 return m_scoreTable[(std::uint8_t)type];
48}
49
50const ScoreValues &
52{
53 std::copy(other.m_scoreTable, other.m_scoreTable + 10, m_scoreTable);
54 return *this;
55}
56
57} // namespace specpeptidoms
58} // namespace pappso
const ScoreValues & operator=(const ScoreValues &other)
Definition: scorevalues.cpp:51
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition: aa.cpp:39