libpappsomspp
Library for mass spectrometry
Toggle main menu visibility
Loading...
Searching...
No Matches
timsmsrunreaderbase.h
Go to the documentation of this file.
1
/**
2
* \file pappsomspp/msrun/private/timsmsrunreaderbase.h
3
* \date 15/07/2024
4
* \author Olivier Langella
5
* \brief Base class for all tims ms run reader objects
6
*/
7
8
/*******************************************************************************
9
* Copyright (c) 2024 Olivier Langella
10
*<Olivier.Langella@universite-paris-saclay.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/msfile/msfileaccessor.h
"
33
#include "
../../vendors/tims/timsdata.h
"
34
35
namespace
pappso
36
{
37
class
PMSPP_LIB_DECL
TimsMsRunReaderBase
:
public
MsRunReader
38
{
39
friend
class
MsFileAccessor
;
40
41
public
:
42
/**
43
* Default constructor
44
*/
45
TimsMsRunReaderBase
(
MsRunIdCstSPtr
&msrun_id_csp);
46
TimsMsRunReaderBase
(
const
TimsMsRunReaderBase
&msrun_reader_base);
47
48
/**
49
* Destructor
50
*/
51
virtual
~TimsMsRunReaderBase
();
52
53
54
/** @brief give an access to the underlying raw data pointer
55
*/
56
virtual
TimsDataSp
getTimsDataSPtr
();
57
virtual
bool
hasScanNumbers
()
const override
;
58
59
virtual
bool
releaseDevice
()
override
;
60
61
virtual
bool
acquireDevice
()
override
;
62
63
64
virtual
Trace
getTicChromatogram
()
override
;
65
66
/** @brief retention timeline
67
* get retention times along the MSrun in seconds
68
* @return vector of retention times (seconds)
69
*/
70
virtual
std::vector<double>
getRetentionTimeLine
()
override
;
71
72
virtual
pappso::XicCoordSPtr
73
newXicCoordSPtrFromSpectrumIndex
(std::size_t spectrum_index,
74
pappso::PrecisionPtr
precision)
const override
;
75
76
virtual
pappso::XicCoordSPtr
77
newXicCoordSPtrFromQualifiedMassSpectrum
(
const
pappso::QualifiedMassSpectrum
&mass_spectrum,
78
pappso::PrecisionPtr
precision)
const override
;
79
80
virtual
const
OboPsiModTerm
getOboPsiModTermInstrumentModelName
()
const override
;
81
82
protected
:
83
virtual
void
initialize
()
override
;
84
virtual
bool
accept
(
const
QString &file_name)
const override
;
85
86
protected
:
87
TimsDataSp
msp_timsData
=
nullptr
;
88
};
89
}
// namespace pappso
pappso::MsRunReader::MsRunReader
MsRunReader(const MsRunIdCstSPtr &ms_run_id)
Definition
msrunreader.cpp:43
pappso::OboPsiModTerm
Definition
obopsimodterm.h:34
pappso::QualifiedMassSpectrum
Class representing a fully specified mass spectrum.
Definition
qualifiedmassspectrum.h:98
pappso::TimsMsRunReaderBase::TimsMsRunReaderBase
TimsMsRunReaderBase(MsRunIdCstSPtr &msrun_id_csp)
Definition
timsmsrunreaderbase.cpp:38
pappso::TimsMsRunReaderBase::getTicChromatogram
virtual Trace getTicChromatogram() override
get a TIC chromatogram
Definition
timsmsrunreaderbase.cpp:111
pappso::TimsMsRunReaderBase::MsFileAccessor
friend class MsFileAccessor
Definition
timsmsrunreaderbase.h:39
pappso::TimsMsRunReaderBase::releaseDevice
virtual bool releaseDevice() override
release data back end device if a the data back end is released, the developper has to use acquireDev...
Definition
timsmsrunreaderbase.cpp:86
pappso::TimsMsRunReaderBase::initialize
virtual void initialize() override
Definition
timsmsrunreaderbase.cpp:57
pappso::TimsMsRunReaderBase::getOboPsiModTermInstrumentModelName
virtual const OboPsiModTerm getOboPsiModTermInstrumentModelName() const override
get OboPsiModTerm corresponding to the instrument model name child of : [Term] id: MS:1000031 name: i...
Definition
timsmsrunreaderbase.cpp:152
pappso::TimsMsRunReaderBase::newXicCoordSPtrFromSpectrumIndex
virtual pappso::XicCoordSPtr newXicCoordSPtrFromSpectrumIndex(std::size_t spectrum_index, pappso::PrecisionPtr precision) const override
get a xic coordinate object from a given spectrum index
Definition
timsmsrunreaderbase.cpp:131
pappso::TimsMsRunReaderBase::getRetentionTimeLine
virtual std::vector< double > getRetentionTimeLine() override
retention timeline get retention times along the MSrun in seconds
Definition
timsmsrunreaderbase.cpp:124
pappso::TimsMsRunReaderBase::msp_timsData
TimsDataSp msp_timsData
Definition
timsmsrunreaderbase.h:87
pappso::TimsMsRunReaderBase::hasScanNumbers
virtual bool hasScanNumbers() const override
tells if spectra can be accessed using scan numbers by default, it returns false. Only overrided func...
Definition
timsmsrunreaderbase.cpp:79
pappso::TimsMsRunReaderBase::newXicCoordSPtrFromQualifiedMassSpectrum
virtual pappso::XicCoordSPtr newXicCoordSPtrFromQualifiedMassSpectrum(const pappso::QualifiedMassSpectrum &mass_spectrum, pappso::PrecisionPtr precision) const override
get a xic coordinate object from a given spectrum
Definition
timsmsrunreaderbase.cpp:140
pappso::TimsMsRunReaderBase::acquireDevice
virtual bool acquireDevice() override
acquire data back end device
Definition
timsmsrunreaderbase.cpp:93
pappso::TimsMsRunReaderBase::accept
virtual bool accept(const QString &file_name) const override
tells if the reader is able to handle this file must be implemented by private MS run reader,...
Definition
timsmsrunreaderbase.cpp:72
pappso::TimsMsRunReaderBase::getTimsDataSPtr
virtual TimsDataSp getTimsDataSPtr()
give an access to the underlying raw data pointer
Definition
timsmsrunreaderbase.cpp:103
pappso::Trace
A simple container of DataPoint instances.
Definition
trace.h:152
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition
export-import-config.h:14
msfileaccessor.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::TimsDataSp
std::shared_ptr< TimsData > TimsDataSp
shared pointer on a TimsData object
Definition
timsdata.h:54
pappso::PrecisionPtr
const PrecisionBase * PrecisionPtr
Definition
precision.h:122
pappso::XicCoordSPtr
std::shared_ptr< XicCoord > XicCoordSPtr
Definition
xiccoord.h:44
timsdata.h
pappsomspp
core
msrun
private
timsmsrunreaderbase.h
Generated on
for libpappsomspp by
1.17.0