libpappsomspp
Library for mass spectrometry
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;
29 {
30 }
31 
33 {
34  throw PappsoException(
35  QObject::tr("unable to copy PeptideModificatorTee object"));
37 }
39 {
40 }
41 
42 void
44  PeptideModificatorInterface *p_peptide_mod)
45 {
46  m_peptideModPtrList.push_back(p_peptide_mod);
47 }
48 
49 
50 void
51 PeptideModificatorTee::setPeptideSp(std::int8_t sequence_database_id,
52  const ProteinSp &protein_sp,
53  bool is_decoy,
54  const PeptideSp &peptide_sp_original,
55  unsigned int start,
56  bool is_nter,
57  unsigned int missed_cleavage_number,
58  bool semi_enzyme)
59 {
60 
61  qDebug() << "PeptideModificatorTee::setPeptide begin";
62 
63  for(auto p_peptide_mod : m_peptideModPtrList)
64  {
65  p_peptide_mod->setPeptideSp(sequence_database_id,
66  protein_sp,
67  is_decoy,
68  peptide_sp_original,
69  start,
70  is_nter,
71  missed_cleavage_number,
72  semi_enzyme);
73  }
74 
75  qDebug() << "PeptideModificatorTee::setPeptide end";
76 }
void addModificator(PeptideModificatorInterface *p_peptide_mod)
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
std::list< PeptideModificatorInterface * > m_peptideModPtrList
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition: aa.cpp:39
std::shared_ptr< const Peptide > PeptideSp
std::shared_ptr< const Protein > ProteinSp
shared pointer on a Protein object
Definition: protein.h:43