libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
timsmsrunreaderms2selected.h
Go to the documentation of this file.
1
/**
2
* \file pappsomspp/msrun/private/timsmsrunreaderms2.h
3
* \date 10/09/2019
4
* \author Olivier Langella
5
* \brief MSrun file reader for native Bruker TimsTOF specialized for MS2
6
* purpose
7
*/
8
9
/*******************************************************************************
10
* Copyright (c) 2019 Olivier Langella <Olivier.Langella@u-psud.fr>.
11
*
12
* This file is part of the PAPPSOms++ library.
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
30
#pragma once
31
32
#include "
pappsomspp/core/msrun/private/timsmsrunreaderms2.h
"
33
#include "../../types.h"
34
#include "
pappsomspp/core/msfile/msfileaccessor.h
"
35
#include "
pappsomspp/core/msfile/msfilereader.h
"
36
#include "../../vendors/tims/timsdata.h"
37
38
namespace
pappso
39
{
40
41
class
PMSPP_LIB_DECL
TimsMsRunReaderMs2Selected
:
public
TimsMsRunReaderMs2
42
{
43
friend
class
MsFileAccessor
;
44
/**
45
* @todo write docs
46
*/
47
public
:
48
TimsMsRunReaderMs2Selected
(
MsRunIdCstSPtr
&msrun_id_csp);
49
virtual
~TimsMsRunReaderMs2Selected
();
50
51
virtual
MassSpectrumSPtr
massSpectrumSPtr(std::size_t spectrum_index)
override
;
52
virtual
MassSpectrumCstSPtr
massSpectrumCstSPtr(std::size_t spectrum_index)
override
;
53
54
virtual
QualifiedMassSpectrum
qualifiedMassSpectrum(std::size_t spectrum_index,
55
bool
want_binary_data =
true
)
const override
;
56
57
virtual
void
readSpectrumCollection(
SpectrumCollectionHandlerInterface
&handler)
override
;
58
59
virtual
void
readSpectrumCollection2(
const
MsRunReadConfig
&config,
60
SpectrumCollectionHandlerInterface
&handler)
override
;
61
virtual
std::size_t spectrumListSize()
const override
;
62
63
virtual
bool
hasScanNumbers()
const override
;
64
65
void
setMs2FilterCstSPtr(
pappso::FilterInterfaceCstSPtr
filter);
66
void
setMs1FilterCstSPtr(
pappso::FilterInterfaceCstSPtr
filter);
67
68
virtual
std::size_t
69
spectrumStringIdentifier2SpectrumIndex(
const
QString &spectrum_identifier)
override
;
70
71
72
protected
:
73
virtual
void
initialize()
override
;
74
virtual
bool
accept(
const
QString &file_name)
const override
;
75
76
private
:
77
TimsData
*mpa_timsData =
nullptr
;
78
};
79
80
81
}
// namespace pappso
pappso::MsFileAccessor
Definition
msfileaccessor.h:28
pappso::MsRunReadConfig
Definition
msrunreadconfig.h:62
pappso::QualifiedMassSpectrum
Class representing a fully specified mass spectrum.
Definition
qualifiedmassspectrum.h:99
pappso::SpectrumCollectionHandlerInterface
interface to collect spectrums from the MsRunReader class
Definition
spectrumcollectionhandlerinterface.h:56
pappso::TimsData
Definition
timsdata.h:68
pappso::TimsMsRunReaderMs2Selected
Definition
timsmsrunreaderms2selected.h:42
pappso::TimsMsRunReaderMs2
Definition
timsmsrunreaderms2.h:39
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition
export-import-config.h:14
msfileaccessor.h
msfilereader.h
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition
aa.cpp:39
pappso::MsRunIdCstSPtr
std::shared_ptr< const MsRunId > MsRunIdCstSPtr
Definition
msrunid.h:46
pappso::MassSpectrumCstSPtr
std::shared_ptr< const MassSpectrum > MassSpectrumCstSPtr
Definition
massspectrum.h:57
pappso::FilterInterfaceCstSPtr
std::shared_ptr< const FilterInterface > FilterInterfaceCstSPtr
Definition
filterinterface.h:47
pappso::MassSpectrumSPtr
std::shared_ptr< MassSpectrum > MassSpectrumSPtr
Definition
massspectrum.h:56
timsmsrunreaderms2.h
pappsomspp
core
msrun
private
timsmsrunreaderms2selected.h
Generated on Thu Nov 6 2025 12:27:26 for libpappsomspp by
1.9.8