Loading...
Searching...
No Matches
scorevalues.cpp
Go to the documentation of this file.
/*
* Copyright (c) 2025 Aurélien Berthier
* <aurelien.berthier@ls2n.fr>
*
*
>>>>>>> main:src/pappsomspp/processing/specpeptidoms/scorevalues.cpp
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "scorevalues.h"
namespace pappso
{
namespace specpeptidoms
{
ScoreValues::ScoreValues()
{
m_scoreTable[(uint8_t)ScoreType::foundDouble] = 10;
m_scoreTable[(uint8_t)ScoreType::found] = 7;
m_scoreTable[(uint8_t)ScoreType::foundShiftDouble] = -6;
m_scoreTable[(uint8_t)ScoreType::foundShift] = -8;
m_scoreTable[(uint8_t)ScoreType::notFound] = -4;
m_scoreTable[(uint8_t)ScoreType::init] = -19;
}
ScoreValues::ScoreValues(const ScoreValues &other)
{
std::copy(other.m_scoreTable, other.m_scoreTable + 10, m_scoreTable);
}
ScoreValues::~ScoreValues()
{
}
int
ScoreValues::get(ScoreType type) const
{
return m_scoreTable[(std::uint8_t)type];
}
const ScoreValues &
ScoreValues::operator=(const ScoreValues &other)
{
std::copy(other.m_scoreTable, other.m_scoreTable + 10, m_scoreTable);
return *this;
}
} // namespace specpeptidoms
} // namespace pappso
pappso::specpeptidoms::ScoreValues
Definition scorevalues.h:29
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:41
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