libpappsomspp
Library for mass spectrometry
Toggle main menu visibility
Loading...
Searching...
No Matches
peptidemodificatortee.cpp
Go to the documentation of this file.
1
2
/*******************************************************************************
3
* Copyright (c) 2016 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
#include "
peptidemodificatortee.h
"
26
27
using namespace
pappso
;
28
PeptideModificatorTee::PeptideModificatorTee
()
29
{
30
}
31
32
PeptideModificatorTee::PeptideModificatorTee
(
const
PeptideModificatorTee
&other)
33
{
34
throw
PappsoException
(QObject::tr(
"unable to copy PeptideModificatorTee object"
));
35
m_peptideModPtrList
= other.
m_peptideModPtrList
;
36
}
37
PeptideModificatorTee::~PeptideModificatorTee
()
38
{
39
}
40
41
void
42
PeptideModificatorTee::addModificator
(
PeptideModificatorInterface
*p_peptide_mod)
43
{
44
m_peptideModPtrList
.push_back(p_peptide_mod);
45
}
46
47
48
void
49
PeptideModificatorTee::setPeptideSp
(std::int8_t sequence_database_id,
50
const
ProteinSp
&protein_sp,
51
bool
is_decoy,
52
const
PeptideSp
&peptide_sp_original,
53
unsigned
int
start,
54
bool
is_nter,
55
unsigned
int
missed_cleavage_number,
56
bool
semi_enzyme)
57
{
58
59
qDebug() <<
"PeptideModificatorTee::setPeptide begin"
;
60
61
for
(
auto
p_peptide_mod :
m_peptideModPtrList
)
62
{
63
p_peptide_mod->setPeptideSp(sequence_database_id,
64
protein_sp,
65
is_decoy,
66
peptide_sp_original,
67
start,
68
is_nter,
69
missed_cleavage_number,
70
semi_enzyme);
71
}
72
73
qDebug() <<
"PeptideModificatorTee::setPeptide end"
;
74
}
pappso::PappsoException
Definition
pappsoexception.h:41
pappso::PeptideModificatorInterface
Definition
enzymeproductinterface.h:65
pappso::PeptideModificatorTee::PeptideModificatorTee
PeptideModificatorTee()
Definition
peptidemodificatortee.cpp:28
pappso::PeptideModificatorTee::addModificator
void addModificator(PeptideModificatorInterface *p_peptide_mod)
Definition
peptidemodificatortee.cpp:42
pappso::PeptideModificatorTee::~PeptideModificatorTee
virtual ~PeptideModificatorTee()
Definition
peptidemodificatortee.cpp:37
pappso::PeptideModificatorTee::setPeptideSp
void setPeptideSp(std::int8_t sequence_database_id, const ProteinSp &protein_sp, bool is_decoy, const PeptideSp &peptide_sp_original, unsigned int start, bool is_nter, unsigned int missed_cleavage_number, bool semi_enzyme) override
function to give the products of modifications for a digested peptide
Definition
peptidemodificatortee.cpp:49
pappso::PeptideModificatorTee::m_peptideModPtrList
std::list< PeptideModificatorInterface * > m_peptideModPtrList
Definition
peptidemodificatortee.h:54
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition
aa.cpp:39
pappso::PeptideSp
std::shared_ptr< const Peptide > PeptideSp
Definition
aamodification.h:48
pappso::ProteinSp
std::shared_ptr< const Protein > ProteinSp
shared pointer on a Protein object
Definition
protein.h:47
peptidemodificatortee.h
pappsomspp
core
protein
peptidemodificatortee.cpp
Generated on
for libpappsomspp by
1.17.0