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
21
#include "
pappsomspp/core/protein/protein.h
"
22
#include "
pappsomspp/core/amino_acid/aacode.h
"
23
#include "
pappsomspp/export-import-config.h
"
24
25
namespace
pappso
26
{
27
namespace
specpeptidoms
28
{
29
30
struct
SpOMSAa
31
{
32
std::uint8_t
code
;
33
pappso::Enums::AminoAcidChar
aa
;
34
double
mass
;
35
};
36
37
class
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
:
52
QString
m_description
;
53
QString
m_sequence
;
54
};
55
}
// namespace specpeptidoms
56
}
// namespace pappso
aacode.h
pappso::AaCode
collection of integer code for each amino acid 0 => null 1 to 20 => amino acid sorted by there mass (...
Definition
aacode.h:44
pappso::specpeptidoms::SpOMSProtein
Definition
spomsprotein.h:38
pappso::specpeptidoms::SpOMSProtein::m_description
QString m_description
Definition
spomsprotein.h:52
pappso::specpeptidoms::SpOMSProtein::m_sequence
QString m_sequence
Definition
spomsprotein.h:53
export-import-config.h
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition
export-import-config.h:14
pappso::Enums::AminoAcidChar
AminoAcidChar
Definition
types.h:196
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition
aa.cpp:39
protein.h
pappso::specpeptidoms::SpOMSAa
Definition
spomsprotein.h:31
pappso::specpeptidoms::SpOMSAa::code
std::uint8_t code
Definition
spomsprotein.h:32
pappso::specpeptidoms::SpOMSAa::aa
pappso::Enums::AminoAcidChar aa
Definition
spomsprotein.h:33
pappso::specpeptidoms::SpOMSAa::mass
double mass
Definition
spomsprotein.h:34
pappsomspp
core
processing
specpeptidoms
spomsprotein.h
Generated on Tue May 19 2026 12:52:14 for libpappsomspp by
1.9.8