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
24
25namespace pappso
26{
27namespace specpeptidoms
28{
29
30struct SpOMSAa
31{
32 std::uint8_t code;
34 double mass;
35};
36
37class PMSPP_LIB_DECL SpOMSProtein : public std::vector<SpOMSAa>
38{
39 public:
40 SpOMSProtein(const QString &description, const QString &sequence, const AaCode &aa_code);
41
42 virtual ~SpOMSProtein();
43
44 const QString getAccession() const;
45 const QString &getCompleteDescription() const;
46 const QString &getSequence() const;
47
48
49 std::vector<SpOMSAa> sliced(std::size_t position, std::size_t length) const;
50
51 private:
53 QString m_sequence;
54};
55} // namespace specpeptidoms
56} // 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
SpOMSProtein(const QString &description, const QString &sequence, const AaCode &aa_code)
const QString & getCompleteDescription() const
std::vector< SpOMSAa > sliced(std::size_t position, std::size_t length) const
#define PMSPP_LIB_DECL
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39
pappso::Enums::AminoAcidChar aa