libpappsomspp
Library for mass spectrometry
Toggle main menu visibility
Loading...
Searching...
No Matches
peptidesizefilter.cpp
Go to the documentation of this file.
1
2
/*******************************************************************************
3
* Copyright (c) 2015 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 "
peptidesizefilter.h
"
26
27
namespace
pappso
28
{
29
PeptideSizeFilter::PeptideSizeFilter
(
unsigned
int
min_size,
unsigned
int
max_size)
30
:
m_minSize
(min_size),
m_maxSize
(max_size)
31
{
32
}
33
34
PeptideSizeFilter::~PeptideSizeFilter
()
35
{
36
}
37
38
void
39
PeptideSizeFilter::setPeptide
(std::int8_t sequence_database_id,
40
const
ProteinSp
&protein_sp,
41
bool
is_decoy,
42
const
QString &peptide,
43
unsigned
int
start,
44
bool
is_nter,
45
unsigned
int
missed_cleavage_number,
46
bool
semi_enzyme)
47
{
48
if
((peptide.size() >=
m_minSize
) && (peptide.size() <=
m_maxSize
))
49
{
50
m_sink
->setPeptide(sequence_database_id,
51
protein_sp,
52
is_decoy,
53
peptide,
54
start,
55
is_nter,
56
missed_cleavage_number,
57
semi_enzyme);
58
}
59
}
60
}
// namespace pappso
pappso::PeptideSizeFilter::m_sink
EnzymeProductInterface * m_sink
Definition
peptidesizefilter.h:61
pappso::PeptideSizeFilter::PeptideSizeFilter
PeptideSizeFilter(unsigned int min_size, unsigned int max_size)
Definition
peptidesizefilter.cpp:29
pappso::PeptideSizeFilter::setPeptide
void setPeptide(std::int8_t sequence_database_id, const ProteinSp &protein_sp, bool is_decoy, const QString &peptide, unsigned int start, bool is_nter, unsigned int missed_cleavage_number, bool semi_enzyme) override
function to give the products of a protein digestion by an enzyme
Definition
peptidesizefilter.cpp:39
pappso::PeptideSizeFilter::m_minSize
const int m_minSize
Definition
peptidesizefilter.h:62
pappso::PeptideSizeFilter::~PeptideSizeFilter
virtual ~PeptideSizeFilter()
Definition
peptidesizefilter.cpp:34
pappso::PeptideSizeFilter::m_maxSize
const int m_maxSize
Definition
peptidesizefilter.h:63
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition
aa.cpp:39
pappso::ProteinSp
std::shared_ptr< const Protein > ProteinSp
shared pointer on a Protein object
Definition
protein.h:47
peptidesizefilter.h
pappsomspp
core
protein
peptidesizefilter.cpp
Generated on
for libpappsomspp by
1.17.0