libpappsomspp
Library for mass spectrometry
Toggle main menu visibility
Loading...
Searching...
No Matches
ionmobilitygrid.h
Go to the documentation of this file.
1
/**
2
* \file pappsomspp/msrun/xiccoord/ionmobilitygrid.h
3
* \date 26/01/2023
4
* \author Olivier Langella
5
* \brief store observed ion mobility coordinates differences between MS runs
6
*/
7
8
9
/*******************************************************************************
10
* Copyright (c) 2023 Olivier Langella
11
*<Olivier.Langella@universite-paris-saclay.fr>.
12
*
13
* This file is part of the PAPPSOms++ library.
14
*
15
* PAPPSOms++ is free software: you can redistribute it and/or modify
16
* it under the terms of the GNU General Public License as published by
17
* the Free Software Foundation, either version 3 of the License, or
18
* (at your option) any later version.
19
*
20
* PAPPSOms++ is distributed in the hope that it will be useful,
21
* but WITHOUT ANY WARRANTY; without even the implied warranty of
22
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
* GNU General Public License for more details.
24
*
25
* You should have received a copy of the GNU General Public License
26
* along with PAPPSOms++. If not, see <http://www.gnu.org/licenses/>.
27
*
28
******************************************************************************/
29
30
#pragma once
31
32
#include "
../msrunid.h
"
33
#include "
xiccoord.h
"
34
#include "
pappsomspp/export-import-config.h
"
35
36
namespace
pappso
37
{
38
/**
39
* @todo helper to align ion mobility ranges between MS runs
40
*/
41
class
PMSPP_LIB_DECL
IonMobilityGrid
42
{
43
public
:
44
/**
45
* Default constructor
46
*/
47
IonMobilityGrid
();
48
49
/**
50
* Destructor
51
*/
52
virtual
~IonMobilityGrid
();
53
54
void
storeObservedIdentityBetween
(
const
MsRunId
&msrun_ida,
55
const
XicCoord
*xic_coorda,
56
const
MsRunId
&msrun_idb,
57
const
XicCoord
*xic_coordb);
58
59
void
computeCorrections
();
60
61
pappso::XicCoordSPtr
62
translateXicCoordFromTo
(
const
pappso::XicCoord
&source_xic_coord,
63
const
MsRunId
&source_msrunid,
64
const
MsRunId
&target_msrunid)
const
;
65
66
const
std::map<QString, std::vector<qint64>> &
getMapDiferrencesStart
()
const
;
67
const
std::map<QString, long> &
getMapCorrectionsStart
()
const
;
68
69
private
:
70
std::map<QString, std::vector<qint64>>
m_mapDiferrencesStart
;
71
std::map<QString, std::vector<qint64>>
m_mapDiferrencesStop
;
72
73
74
/** @brief scan num correction on start position stored for each msrun pair
75
*/
76
std::map<QString, long>
m_mapCorrectionsStart
;
77
78
79
/** @brief scan num correction on start position stored for each msrun pair
80
*/
81
std::map<QString, long>
m_mapCorrectionsStop
;
82
};
83
84
}
// namespace pappso
pappso::IonMobilityGrid::m_mapCorrectionsStop
std::map< QString, long > m_mapCorrectionsStop
scan num correction on start position stored for each msrun pair
Definition
ionmobilitygrid.h:81
pappso::IonMobilityGrid::getMapCorrectionsStart
const std::map< QString, long > & getMapCorrectionsStart() const
Definition
ionmobilitygrid.cpp:184
pappso::IonMobilityGrid::translateXicCoordFromTo
pappso::XicCoordSPtr translateXicCoordFromTo(const pappso::XicCoord &source_xic_coord, const MsRunId &source_msrunid, const MsRunId &target_msrunid) const
Definition
ionmobilitygrid.cpp:129
pappso::IonMobilityGrid::m_mapDiferrencesStart
std::map< QString, std::vector< qint64 > > m_mapDiferrencesStart
Definition
ionmobilitygrid.h:70
pappso::IonMobilityGrid::m_mapCorrectionsStart
std::map< QString, long > m_mapCorrectionsStart
scan num correction on start position stored for each msrun pair
Definition
ionmobilitygrid.h:76
pappso::IonMobilityGrid::computeCorrections
void computeCorrections()
Definition
ionmobilitygrid.cpp:88
pappso::IonMobilityGrid::IonMobilityGrid
IonMobilityGrid()
Definition
ionmobilitygrid.cpp:37
pappso::IonMobilityGrid::storeObservedIdentityBetween
void storeObservedIdentityBetween(const MsRunId &msrun_ida, const XicCoord *xic_coorda, const MsRunId &msrun_idb, const XicCoord *xic_coordb)
Definition
ionmobilitygrid.cpp:46
pappso::IonMobilityGrid::getMapDiferrencesStart
const std::map< QString, std::vector< qint64 > > & getMapDiferrencesStart() const
Definition
ionmobilitygrid.cpp:178
pappso::IonMobilityGrid::m_mapDiferrencesStop
std::map< QString, std::vector< qint64 > > m_mapDiferrencesStop
Definition
ionmobilitygrid.h:71
pappso::MsRunId
MS run identity MsRunId identifies an MS run with a unique ID (XmlId) and contains eventually informa...
Definition
msrunid.h:54
export-import-config.h
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition
export-import-config.h:14
msrunid.h
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition
aa.cpp:39
pappso::XicCoordSPtr
std::shared_ptr< XicCoord > XicCoordSPtr
Definition
xiccoord.h:44
pappso::XicCoord
coordinates of the XIC to extract and the resulting XIC after extraction
Definition
xiccoord.h:68
xiccoord.h
pappsomspp
core
msrun
xiccoord
ionmobilitygrid.h
Generated on
for libpappsomspp by
1.17.0