libpappsomspp
Library for mass spectrometry
Toggle main menu visibility
Loading...
Searching...
No Matches
precursor.h
Go to the documentation of this file.
1
/**
2
* \file pappsomspp/masschroq/precursor.h
3
* \date 04/11/2024
4
* \author Olivier Langella
5
* \brief MS1 precursor information
6
*/
7
8
/*******************************************************************************
9
* Copyright (c) 2024 Olivier Langella
10
*<Olivier.Langella@universite-paris-saclay.fr>.
11
*
12
* This file is part of MassChroQ.
13
*
14
* MassChroQ 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
* MassChroQ 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 MassChroQ. If not, see <http://www.gnu.org/licenses/>.
26
*
27
******************************************************************************/
28
29
#pragma once
30
31
#include <memory>
32
#include "
pappsomspp/core/msrun/xiccoord/xiccoord.h
"
33
34
namespace
pappso::masschroq
35
{
36
37
class
Precursor
;
38
39
typedef
std::shared_ptr<Precursor>
PrecursorSp
;
40
41
/**
42
* \class Precursor
43
* \brief A Precursor object represents the parent/precursor of the MS level 2
44
* scan with number _scan_num in the mzxml file.
45
46
* In mzxml files, MS scans of level 2 have each a precursor object
47
* representing their MS level 1 parent/precursor. A Precursor object has :
48
* - a spectrum index
49
* - a retention time value
50
* - an intensity value
51
* - an mz value
52
* - Xic coordinates
53
*/
54
55
class
Precursor
56
{
57
public
:
58
/**
59
* Default constructor
60
*/
61
Precursor
(std::size_t spectrum_index,
62
double
mz,
63
double
intensity,
64
pappso::XicCoordSPtr
xic_coord);
65
66
/**
67
* Destructor
68
*/
69
virtual
~Precursor
();
70
double
getIntensity
()
const
;
71
72
std::size_t
getSpectrumIndex
()
const
;
73
74
const
pappso::XicCoordSPtr
&
getXicCoordSPtr
()
const
;
75
76
private
:
77
///< MS level 2 scan number whome this Precursor is parent
78
std::size_t
m_spectrumIndex
;
79
/// intensity of this precursor
80
double
m_intensity
;
81
/// selected m/z of this precursor
82
double
m_mz
;
83
/// Xic coordinates
84
pappso::XicCoordSPtr
msp_xicCoord
;
85
};
86
}
// namespace pappso::masschroq
pappso::masschroq::Precursor
A Precursor object represents the parent/precursor of the MS level 2 scan with number _scan_num in th...
Definition
precursor.h:56
pappso::masschroq::Precursor::~Precursor
virtual ~Precursor()
Definition
precursor.cpp:54
pappso::masschroq::Precursor::msp_xicCoord
pappso::XicCoordSPtr msp_xicCoord
Xic coordinates.
Definition
precursor.h:84
pappso::masschroq::Precursor::getSpectrumIndex
std::size_t getSpectrumIndex() const
Definition
precursor.cpp:65
pappso::masschroq::Precursor::m_mz
double m_mz
selected m/z of this precursor
Definition
precursor.h:82
pappso::masschroq::Precursor::getXicCoordSPtr
const pappso::XicCoordSPtr & getXicCoordSPtr() const
Definition
precursor.cpp:71
pappso::masschroq::Precursor::Precursor
Precursor(std::size_t spectrum_index, double mz, double intensity, pappso::XicCoordSPtr xic_coord)
Definition
precursor.cpp:33
pappso::masschroq::Precursor::m_intensity
double m_intensity
intensity of this precursor
Definition
precursor.h:80
pappso::masschroq::Precursor::getIntensity
double getIntensity() const
Definition
precursor.cpp:59
pappso::masschroq::Precursor::m_spectrumIndex
std::size_t m_spectrumIndex
< MS level 2 scan number whome this Precursor is parent
Definition
precursor.h:78
pappso::masschroq
Definition
alignmentmethod.h:38
pappso::masschroq::PrecursorSp
std::shared_ptr< Precursor > PrecursorSp
Definition
precursor.h:39
pappso::XicCoordSPtr
std::shared_ptr< XicCoord > XicCoordSPtr
Definition
xiccoord.h:44
xiccoord.h
pappsomspp
core
masschroq
precursor.h
Generated on
for libpappsomspp by
1.17.0