libpappsomspp
Library for mass spectrometry
Toggle main menu visibility
Loading...
Searching...
No Matches
peptidefixedmodificationbuilder.h
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
#pragma once
26
27
28
#include "
peptidemodificatorbase.h
"
29
30
namespace
pappso
31
{
32
33
class
PMSPP_LIB_DECL
PeptideFixedModificationBuilder
34
:
public
PeptideModificatorBase
35
{
36
public
:
37
PeptideFixedModificationBuilder
(
AaModificationP
p_mod);
38
virtual
~PeptideFixedModificationBuilder
();
39
void
setPeptideSp
(std::int8_t sequence_database_id,
40
const
ProteinSp
&protein_sp,
41
bool
is_decoy,
42
const
PeptideSp
&peptide_sp_original,
43
unsigned
int
start,
44
bool
is_nter,
45
unsigned
int
missed_cleavage_number,
46
bool
semi_enzyme)
override
;
47
48
void
addAa
(
char
aa);
49
50
void
51
setSink
(
PeptideModificatorInterface
*sink)
override
52
{
53
m_sink
= sink;
54
};
55
/** \brief this modification concerns the Nter peptide
56
* */
57
void
58
setProtNter
(
bool
arg1)
59
{
60
m_isProtNterMod
= arg1;
61
};
62
/** \brief this modification concerns the Cter peptide
63
* */
64
void
65
setProtCter
(
bool
arg1)
66
{
67
m_isProtCterMod
= arg1;
68
};
69
/** \brief this modification concerns all peptides between Nter and Cter
70
* */
71
void
72
setProtElse
(
bool
arg1)
73
{
74
m_isProtElseMod
= arg1;
75
};
76
77
private
:
78
PeptideModificatorInterface
*
m_sink
=
nullptr
;
79
80
const
AaModificationP
mp_mod
;
81
82
// protein Nter modification
83
bool
m_isProtNterMod
=
true
;
84
// protein Cter modification
85
bool
m_isProtCterMod
=
true
;
86
// all peptide between Nter and Cter
87
bool
m_isProtElseMod
=
true
;
88
89
QString
m_aaModificationList
;
90
};
91
92
}
// namespace pappso
pappso::PeptideFixedModificationBuilder::PeptideFixedModificationBuilder
PeptideFixedModificationBuilder(AaModificationP p_mod)
Definition
peptidefixedmodificationbuilder.cpp:29
pappso::PeptideFixedModificationBuilder::mp_mod
const AaModificationP mp_mod
Definition
peptidefixedmodificationbuilder.h:80
pappso::PeptideFixedModificationBuilder::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
peptidefixedmodificationbuilder.cpp:50
pappso::PeptideFixedModificationBuilder::setProtElse
void setProtElse(bool arg1)
this modification concerns all peptides between Nter and Cter
Definition
peptidefixedmodificationbuilder.h:72
pappso::PeptideFixedModificationBuilder::setProtCter
void setProtCter(bool arg1)
this modification concerns the Cter peptide
Definition
peptidefixedmodificationbuilder.h:65
pappso::PeptideFixedModificationBuilder::m_sink
PeptideModificatorInterface * m_sink
Definition
peptidefixedmodificationbuilder.h:78
pappso::PeptideFixedModificationBuilder::setSink
void setSink(PeptideModificatorInterface *sink) override
Definition
peptidefixedmodificationbuilder.h:51
pappso::PeptideFixedModificationBuilder::m_isProtElseMod
bool m_isProtElseMod
Definition
peptidefixedmodificationbuilder.h:87
pappso::PeptideFixedModificationBuilder::m_isProtNterMod
bool m_isProtNterMod
Definition
peptidefixedmodificationbuilder.h:83
pappso::PeptideFixedModificationBuilder::m_isProtCterMod
bool m_isProtCterMod
Definition
peptidefixedmodificationbuilder.h:85
pappso::PeptideFixedModificationBuilder::setProtNter
void setProtNter(bool arg1)
this modification concerns the Nter peptide
Definition
peptidefixedmodificationbuilder.h:58
pappso::PeptideFixedModificationBuilder::addAa
void addAa(char aa)
Definition
peptidefixedmodificationbuilder.cpp:39
pappso::PeptideFixedModificationBuilder::m_aaModificationList
QString m_aaModificationList
Definition
peptidefixedmodificationbuilder.h:89
pappso::PeptideModificatorBase::PeptideModificatorBase
PeptideModificatorBase()
Definition
peptidemodificatorbase.cpp:35
pappso::PeptideModificatorInterface
Definition
enzymeproductinterface.h:65
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition
export-import-config.h:14
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::AaModificationP
const AaModification * AaModificationP
Definition
aamodification.h:52
pappso::ProteinSp
std::shared_ptr< const Protein > ProteinSp
shared pointer on a Protein object
Definition
protein.h:47
peptidemodificatorbase.h
base class for all peptide modification builders
pappsomspp
core
protein
peptidefixedmodificationbuilder.h
Generated on
for libpappsomspp by
1.17.0