Matrix Science Mascot Parser toolkit
 
Loading...
Searching...
No Matches
ms_ms1quant_charge_state.hpp
1/*
2##############################################################################
3# file: ms_fitexy_result.hpp
4# 'msparser' toolkit
5#
6##############################################################################
7# COPYRIGHT NOTICE
8# Copyright 1998-2014 Matrix Science Limited All Rights Reserved.
9#
10##############################################################################
11 * @(#)$Source: parser/inc/ms_ms1quant_charge_state.hpp $
12 * @(#)$Revision: c462f7f06ab9626f3809cf58ed4501d0305d1696 | MSPARSER_REL_3_0_0-2024-09-24-0-g93ebaeb4f4 $
13 * @(#)$Date: 2022-02-24 23:12:28 +0000 $
14##############################################################################
15 */
16
17#ifndef MS_MS1QUANT_CHARGE_STATE_HPP
18#define MS_MS1QUANT_CHARGE_STATE_HPP
19
20
21namespace matrix_science
22{
23 //=========================================================================
29 class ms_ms1quant_charge_state_body;
30
32
35 class MS_MASCOTRESFILE_API ms_ms1quant_charge_state :
36 public ms_handle
37 {
38 public:
41
43 ms_ms1quant_charge_state(const ms_ms1quant_charge_state_body & body);
44
45#ifndef SWIG
46 ms_ms1quant_charge_state_body * body();
47 const ms_ms1quant_charge_state_body * body() const;
48
50 ms_ms1quant_charge_state(const double correctSppWidthMin,
51 const double correctSppWidthMax,
52 const double correctSppWidth,
53 const double bucketWidth,
54 const double maxAlignment,
55 const double matchedRho,
56 const double matchedFraction,
57 const double totalIntensity,
58 const std::map<int, std::map<int, double>> & bucketAreas, // file_index -> scanId -> area
59 const std::vector<double> & calcMzVar, // row matrix calcmz
60 const std::vector<int> & idx2Comp
61
62 );
63#endif
64
66 double getCorrectedMinSPPwidth() const;
67
69 double getCorrectedMaxSPPwidth() const;
70
72 double getCorrectedSPPwidth() const;
73
75 double getBucketWidth() const;
76
78 double getMaxAlignment() const;
79
81 double getMatchedRho() const;
82
84 double getMatchedFraction() const;
85
87 double getTotalIntensity() const;
88
90 int getNumberOfBuckets(const int file_index = ms_quant_file_index::file_index_value_not_set) const;
91#ifndef SWIG
93 bool getBucket(int index, unsigned & scanId, double & area) const;
94
96 bool getBucket(const int file_index, int index, unsigned & scanId, double & area) const;
97#else // SWIG Multiple return values
98 bool getBucket(int index, unsigned & OUTPUT, double & OUTPUT) const;
99 bool getBucket(const int file_index, int index, unsigned & OUTPUT, double & OUTPUT) const;
100#endif
101 // \cond INTERNAL
102
104 void setCorrectedMinSPPwidth(double width);
105
107 void setCorrectedMaxSPPwidth(double width);
108
110 void setCorrectedSPPwidth(double width) ;
111
113 void setBucketWidth(double width);
114
116 void setMaxAlignment(double alignemnt);
117
119 void setMatchedRho(double rho);
120
122 void setMatchedFraction(double fraction);
123
125 void setTotalIntensity(double intensity);
126
128 std::vector<double> & getCalcMz();
129
131 const std::vector<double> & getCalcMz() const;
132
134 std::vector<int> & getIdx2Comp();
135
137 int getIdx2Comp(std::size_t index) const;
138
140 std::map<int, double> & getBucketAreas(const int file_index = ms_quant_file_index::file_index_value_not_set);
141
142 // \endcond
143 };
144 // end of quantitation_group
146 //=========================================================================
147
148} // namespace matrix_science
149
150#endif // MS_MS1QUANT_CHARGE_STATE_HPP
151
152/*------------------------------- End of File -------------------------------*/
A result from a charge state calculation.
Definition: ms_ms1quant_charge_state.hpp:37