libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
spomsprotein.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Aurélien Berthier
3 * <aurelien.berthier@ls2n.fr>
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#pragma once
20
23
24namespace pappso
25{
26namespace specpeptidoms
27{
28
29struct SpOMSAa
30{
31 std::uint8_t code;
33 double mass;
34};
35
36class SpOMSProtein : public std::vector<SpOMSAa>
37{
38 public:
39 SpOMSProtein(const QString &description, const QString &sequence, const AaCode &aa_code);
40
41 virtual ~SpOMSProtein();
42
43 const QString getAccession() const;
44 const QString &getCompleteDescription() const;
45 const QString &getSequence() const;
46
47
48 std::vector<SpOMSAa> sliced(std::size_t position, std::size_t length) const;
49
50 private:
52 QString m_sequence;
53};
54} // namespace specpeptidoms
55} // namespace pappso
collection of integer code for each amino acid 0 => null 1 to 20 => amino acid sorted by there mass (...
Definition aacode.h:44
const QString & getSequence() const
const QString & getCompleteDescription() const
std::vector< SpOMSAa > sliced(std::size_t position, std::size_t length) const
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39
pappso::Enums::AminoAcidChar aa