libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
peptidefragmentionlistbase.h
Go to the documentation of this file.
1/**
2 * \file pappsomspp/peptide/peptidefragmentionlistbase.h
3 * \date 10/3/2015
4 * \author Olivier Langella
5 * \brief fragmentation base object
6 */
7
8/*******************************************************************************
9 * Copyright (c) 2015 Olivier Langella <Olivier.Langella@moulon.inra.fr>.
10 *
11 * This file is part of the PAPPSOms++ library.
12 *
13 * PAPPSOms++ is free software: you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation, either version 3 of the License, or
16 * (at your option) any later version.
17 *
18 * PAPPSOms++ is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with PAPPSOms++. If not, see <http://www.gnu.org/licenses/>.
25 *
26 * Contributors:
27 * Olivier Langella <Olivier.Langella@moulon.inra.fr> - initial API and
28 *implementation
29 ******************************************************************************/
30
31#pragma once
32
33#include <list>
34
35#include "peptidefragmention.h"
37
38namespace pappso
39{
40
42typedef std::shared_ptr<const PeptideFragmentIonListBase> PeptideFragmentIonListBaseSp;
43
45{
46 using IonList = std::list<Enums::PeptideIon>;
47
48
49 public:
50 PeptideFragmentIonListBase(const PeptideSp &peptide, const IonList &ions);
54
55 const std::list<Enums::PeptideIon> &getIonList() const;
56 unsigned int getPhosphorylationNumber() const;
57
58 virtual const PeptideSp &getPeptideSp() const;
59
60 const std::list<PeptideFragmentIonSp> getPeptideFragmentIonSp(Enums::PeptideIon ion_type) const;
61 const PeptideFragmentIonSp &getPeptideFragmentIonSp(Enums::PeptideIon ion_type, unsigned int size) const;
63 Enums::PeptideIon ion_type, unsigned int size, unsigned int number_of_neutral_phospho_loss) const;
64
65
66 std::list<PeptideFragmentIonSp>::const_iterator begin() const;
67
68 std::list<PeptideFragmentIonSp>::const_iterator end() const;
69
70
71 const std::list<PeptideFragmentIonSp> &getPeptideFragmentIonList() const;
72
73 static std::list<Enums::PeptideIon> getCIDionList();
74 static std::list<Enums::PeptideIon> getETDionList();
75
76
77 std::size_t size() const;
78
79
80 protected:
82 std::list<PeptideFragmentIonSp> msp_peptide_fragment_ion_list;
85
86 static const std::list<PeptideFragmentSp> getPeptideFragmentList(const PeptideSp &peptide);
87};
88
89
90} // namespace pappso
std::list< PeptideFragmentIonSp > msp_peptide_fragment_ion_list
const std::list< PeptideFragmentIonSp > getPeptideFragmentIonSp(Enums::PeptideIon ion_type) const
PeptideFragmentIonListBaseSp makePeptideFragmentIonListBaseSp() const
static std::list< Enums::PeptideIon > getETDionList()
const std::list< Enums::PeptideIon > & getIonList() const
virtual const PeptideSp & getPeptideSp() const
PeptideFragmentIonListBase(const PeptideSp &peptide, const IonList &ions)
std::list< PeptideFragmentIonSp >::const_iterator end() const
static const std::list< PeptideFragmentSp > getPeptideFragmentList(const PeptideSp &peptide)
static std::list< Enums::PeptideIon > getCIDionList()
std::list< PeptideFragmentIonSp >::const_iterator begin() const
const std::list< PeptideFragmentIonSp > & getPeptideFragmentIonList() const
#define PMSPP_LIB_DECL
PeptideIon
Enums::PeptideIon enum defines all types of ions (Nter or Cter)
Definition types.h:286
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39
std::shared_ptr< const PeptideFragmentIon > PeptideFragmentIonSp
std::shared_ptr< const Peptide > PeptideSp
std::shared_ptr< const PeptideFragmentIonListBase > PeptideFragmentIonListBaseSp