libpappsomspp
Library for mass spectrometry
Toggle main menu visibility
Loading...
Searching...
No Matches
selfspectrum.h
Go to the documentation of this file.
1
/**
2
* \file pappsomspp/processing/specself/selfspectrum.h
3
* \date 23/03/2024
4
* \author Olivier Langella
5
* \brief spectrum self operations
6
*/
7
8
/*******************************************************************************
9
* Copyright (c) 2024 Olivier Langella
10
*<Olivier.Langella@universite-paris-saclay.fr>.
11
*
12
* This file is part of PAPPSOms++.
13
*
14
* PAPPSOms++ is free software: you can redistribute it and/or modify
15
* it under the terms of the GNU General Public License as published by
16
* the Free Software Foundation, either version 3 of the License, or
17
* (at your option) any later version.
18
*
19
* PAPPSOms++ is distributed in the hope that it will be useful,
20
* but WITHOUT ANY WARRANTY; without even the implied warranty of
21
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
* GNU General Public License for more details.
23
*
24
* You should have received a copy of the GNU General Public License
25
* along with PAPPSOms++. If not, see <http://www.gnu.org/licenses/>.
26
*
27
******************************************************************************/
28
29
#pragma once
30
31
#include "
../../trace/trace.h
"
32
#include <boost/numeric/ublas/matrix.hpp>
33
#include "
selfspectrumdatapoint.h
"
34
35
namespace
pappso
36
{
37
namespace
specself
38
{
39
40
typedef
boost::numeric::ublas::matrix<SelfSpectrumDataPoint>
SelfSpectrumMatrix
;
41
/**
42
* @todo write docs
43
*/
44
class
SelfSpectrum
45
{
46
public
:
47
/**
48
* Default constructor
49
*/
50
SelfSpectrum
(
const
pappso::AaStringCodeMassMatching
&codec_mass_matching,
51
const
Trace
&trace);
52
/**
53
* Destructor
54
*/
55
virtual
~SelfSpectrum
();
56
57
void
58
setPrecursorMass
(
const
pappso::AaStringCodeMassMatching
&codec_mass_matching,
59
double
precursor_mass);
60
61
62
void
setVariableModification
(
63
const
pappso::AaStringCodeMassMatching
&codec_mass_matching,
64
const
Aa
&aa,
65
int
quantifier);
66
67
const
SelfSpectrumMatrix
&
getMatrix
()
const
;
68
const
Trace
&
getTrace
()
const
;
69
70
private
:
71
Trace
m_trace
;
72
SelfSpectrumMatrix
m_matrix
;
73
};
74
}
// namespace specself
75
}
// namespace pappso
pappso::AaStringCodeMassMatching
convert a list of mass to amino acid string codes
Definition
aastringcodemassmatching.h:41
pappso::Aa
Definition
aa.h:45
pappso::Trace
A simple container of DataPoint instances.
Definition
trace.h:152
pappso::specself::SelfSpectrum::getMatrix
const SelfSpectrumMatrix & getMatrix() const
Definition
selfspectrum.cpp:64
pappso::specself::SelfSpectrum::setVariableModification
void setVariableModification(const pappso::AaStringCodeMassMatching &codec_mass_matching, const Aa &aa, int quantifier)
Definition
selfspectrum.cpp:96
pappso::specself::SelfSpectrum::~SelfSpectrum
virtual ~SelfSpectrum()
Definition
selfspectrum.cpp:59
pappso::specself::SelfSpectrum::m_matrix
SelfSpectrumMatrix m_matrix
Definition
selfspectrum.h:72
pappso::specself::SelfSpectrum::SelfSpectrum
SelfSpectrum(const pappso::AaStringCodeMassMatching &codec_mass_matching, const Trace &trace)
Definition
selfspectrum.cpp:37
pappso::specself::SelfSpectrum::m_trace
Trace m_trace
Definition
selfspectrum.h:71
pappso::specself::SelfSpectrum::setPrecursorMass
void setPrecursorMass(const pappso::AaStringCodeMassMatching &codec_mass_matching, double precursor_mass)
Definition
selfspectrum.cpp:78
pappso::specself::SelfSpectrum::getTrace
const Trace & getTrace() const
Definition
selfspectrum.cpp:71
pappso::specself
Definition
selfspectrum.cpp:35
pappso::specself::SelfSpectrumMatrix
boost::numeric::ublas::matrix< SelfSpectrumDataPoint > SelfSpectrumMatrix
Definition
selfspectrum.h:40
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition
aa.cpp:39
selfspectrumdatapoint.h
trace.h
pappsomspp
core
processing
specself
selfspectrum.h
Generated on
for libpappsomspp by
1.17.0