libpappsomspp
Library for mass spectrometry
Toggle main menu visibility
Loading...
Searching...
No Matches
msrunxicextractor.h
Go to the documentation of this file.
1
/**
2
* \file pappsomspp/xicextractor/private/msrunxicextractorpwiz.h
3
* \date 07/05/2018
4
* \author Olivier Langella
5
* \brief simple proteowizard based XIC extractor
6
*/
7
8
/*******************************************************************************
9
* Copyright (c) 2018 Olivier Langella <Olivier.Langella@u-psud.fr>.
10
*
11
* This file is part of the PAPPSOms++ library.
12
*
13
* PAPPSOms++ is free software: you can redistribute it and/or modify
14
* it under the terms of the GNU General Public License as published by
15
* the Free Software Foundation, either version 3 of the License, or
16
* (at your option) any later version.
17
*
18
* PAPPSOms++ is distributed in the hope that it will be useful,
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
* GNU General Public License for more details.
22
*
23
* You should have received a copy of the GNU General Public License
24
* along with PAPPSOms++. If not, see <http://www.gnu.org/licenses/>.
25
*
26
* Contributors:
27
* Olivier Langella <Olivier.Langella@u-psud.fr> - initial API and
28
*implementation
29
******************************************************************************/
30
31
#pragma once
32
33
#include "
../msrunxicextractorinterface.h
"
34
35
class
MsRunXicExtractorFactory;
36
37
namespace
pappso
38
{
39
40
41
class
MsRunXicExtractor
:
public
MsRunXicExtractorInterface
42
{
43
friend
MsRunXicExtractorFactory
;
44
45
public
:
46
MsRunXicExtractor
(
const
MsRunXicExtractor
&other);
47
virtual
~MsRunXicExtractor
();
48
49
protected
:
50
MsRunXicExtractor
(
MsRunReaderSPtr
&msrun_reader);
51
52
virtual
void
protectedExtractXicCoordSPtrList
(
53
UiMonitorInterface
&monitor,
54
std::vector<XicCoordSPtr>::iterator it_xic_coord_list_begin,
55
std::vector<XicCoordSPtr>::iterator it_xic_coord_list_end)
override
;
56
57
58
protected
:
59
struct
MsRunXicExtractorPoints
60
{
61
std::size_t
spectrum_index
;
62
double
rt
;
63
};
64
65
/** @brief class to read retention time points of MsRun
66
*/
67
class
MsRunXicExtractorReadPoints
:
public
SpectrumCollectionHandlerInterface
68
{
69
private
:
70
std::vector<MsRunXicExtractorPoints> &
m_msrun_points
;
71
72
public
:
73
MsRunXicExtractorReadPoints
(std::vector<MsRunXicExtractorPoints> &msrun_points)
74
:
m_msrun_points
(msrun_points) {};
75
76
virtual
void
77
setQualifiedMassSpectrum
(
const
QualifiedMassSpectrum
&spectrum)
override
78
{
79
if
(spectrum.
getMsLevel
() == 1)
80
{
81
qDebug() << spectrum.
getMassSpectrumId
().
getSpectrumIndex
();
82
m_msrun_points
.push_back(
83
{spectrum.
getMassSpectrumId
().
getSpectrumIndex
(), spectrum.
getRtInSeconds
()});
84
}
85
}
86
virtual
bool
87
needPeakList
()
const override
88
{
89
return
false
;
90
}
91
virtual
void
92
loadingEnded
()
override
93
{
94
}
95
};
96
97
98
protected
:
99
std::vector<MsRunXicExtractorPoints>
m_msrun_points
;
100
101
private
:
102
void
extractOneXicCoord
(
XicCoord
&xic_coord);
103
};
104
105
106
}
// namespace pappso
pappso::MassSpectrumId::getSpectrumIndex
std::size_t getSpectrumIndex() const
Definition
massspectrumid.cpp:113
pappso::MsRunXicExtractorInterface::MsRunXicExtractorInterface
MsRunXicExtractorInterface(MsRunReaderSPtr &msrun_reader)
constructor is private, use the MsRunXicExtractorFactory
Definition
msrunxicextractorinterface.cpp:40
pappso::MsRunXicExtractor::MsRunXicExtractorReadPoints::needPeakList
virtual bool needPeakList() const override
tells if we need the peak list (if we want the binary data) for each spectrum
Definition
msrunxicextractor.h:87
pappso::MsRunXicExtractor::MsRunXicExtractorReadPoints::loadingEnded
virtual void loadingEnded() override
Definition
msrunxicextractor.h:92
pappso::MsRunXicExtractor::MsRunXicExtractorReadPoints::MsRunXicExtractorReadPoints
MsRunXicExtractorReadPoints(std::vector< MsRunXicExtractorPoints > &msrun_points)
Definition
msrunxicextractor.h:73
pappso::MsRunXicExtractor::MsRunXicExtractorReadPoints::setQualifiedMassSpectrum
virtual void setQualifiedMassSpectrum(const QualifiedMassSpectrum &spectrum) override
Definition
msrunxicextractor.h:77
pappso::MsRunXicExtractor::MsRunXicExtractorReadPoints::m_msrun_points
std::vector< MsRunXicExtractorPoints > & m_msrun_points
Definition
msrunxicextractor.h:70
pappso::MsRunXicExtractor::MsRunXicExtractor
MsRunXicExtractor(const MsRunXicExtractor &other)
Definition
msrunxicextractor.cpp:73
pappso::MsRunXicExtractor::extractOneXicCoord
void extractOneXicCoord(XicCoord &xic_coord)
Definition
msrunxicextractor.cpp:106
pappso::MsRunXicExtractor::m_msrun_points
std::vector< MsRunXicExtractorPoints > m_msrun_points
Definition
msrunxicextractor.h:99
pappso::MsRunXicExtractor::MsRunXicExtractorFactory
friend MsRunXicExtractorFactory
Definition
msrunxicextractor.h:43
pappso::MsRunXicExtractor::~MsRunXicExtractor
virtual ~MsRunXicExtractor()
Definition
msrunxicextractor.cpp:68
pappso::MsRunXicExtractor::protectedExtractXicCoordSPtrList
virtual void protectedExtractXicCoordSPtrList(UiMonitorInterface &monitor, std::vector< XicCoordSPtr >::iterator it_xic_coord_list_begin, std::vector< XicCoordSPtr >::iterator it_xic_coord_list_end) override
Definition
msrunxicextractor.cpp:81
pappso::QualifiedMassSpectrum
Class representing a fully specified mass spectrum.
Definition
qualifiedmassspectrum.h:98
pappso::QualifiedMassSpectrum::getMsLevel
uint getMsLevel() const
Get the mass spectrum level.
Definition
qualifiedmassspectrum.cpp:189
pappso::QualifiedMassSpectrum::getMassSpectrumId
const MassSpectrumId & getMassSpectrumId() const
Get the MassSpectrumId.
Definition
qualifiedmassspectrum.cpp:154
pappso::QualifiedMassSpectrum::getRtInSeconds
pappso_double getRtInSeconds() const
Get the retention time in seconds.
Definition
qualifiedmassspectrum.cpp:205
pappso::SpectrumCollectionHandlerInterface
interface to collect spectrums from the MsRunReader class
Definition
spectrumcollectionhandlerinterface.h:52
pappso::UiMonitorInterface
Definition
uimonitorinterface.h:50
msrunxicextractorinterface.h
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition
aa.cpp:39
pappso::MsRunReaderSPtr
std::shared_ptr< MsRunReader > MsRunReaderSPtr
Definition
msrunreader.h:57
pappso::MsRunXicExtractor::MsRunXicExtractorPoints
Definition
msrunxicextractor.h:60
pappso::MsRunXicExtractor::MsRunXicExtractorPoints::rt
double rt
Definition
msrunxicextractor.h:62
pappso::MsRunXicExtractor::MsRunXicExtractorPoints::spectrum_index
std::size_t spectrum_index
Definition
msrunxicextractor.h:61
pappso::XicCoord
coordinates of the XIC to extract and the resulting XIC after extraction
Definition
xiccoord.h:68
pappsomspp
core
xicextractor
private
msrunxicextractor.h
Generated on
for libpappsomspp by
1.17.0