Matrix Science Mascot Parser toolkit
 
Loading...
Searching...
No Matches
ms_inputquery.hpp
1/*
2##############################################################################
3# file: ms_inputquery.hpp #
4# 'msparser' toolkit #
5# Encapsulates a query from the mascot results file #
6##############################################################################
7# COPYRIGHT NOTICE #
8# Copyright 1998-2002 Matrix Science Limited All Rights Reserved. #
9# #
10##############################################################################
11# $Archive:: /MowseBranches/ms_mascotresfile_1.2/include/ms_inputquery. $ #
12# $Author: villek@matrixscience.com $ #
13# $Date: 2024-09-23 15:56:58 +0100 $ #
14# $Revision: 47700ac4361244fc5a56b7330a3249bd6fbbe674 | MSPARSER_REL_3_0_0-2024-09-24-0-g93ebaeb4f4 $ #
15# $NoKeywords:: $ #
16##############################################################################
17*/
18
19#ifndef MS_INPUTQUERY_HPP
20#define MS_INPUTQUERY_HPP
21
22
23#include <string>
24
25namespace msparser_internal
26{
27 class ms_inputquerybase;
28 class ms_inputquery_dat;
29 class ms_inputquery_msr;
30}
31namespace matrix_science
32{
39
42 class MS_MASCOTRESFILE_API ms_inputquery
43 {
44 public:
45
47 ms_inputquery(const ms_mascotresfilebase &resfile, const int q);
48
49 ~ms_inputquery() = default;
50
52 int getQueryNumber() const;
53
54#ifndef DOXYGEN_SHOULD_SKIP_THIS
55 static std::vector<std::string> splitIT_MODS(std::string itmods);
56#endif
57
58#ifndef SWIGCSHARP
60 std::string getStringTitle(bool unescaped) const;
61#else
62 std::wstring getStringTitle(bool unescaped) const
63 {
64 return getStringTitleWide(unescaped);
65 };
66#endif
68 std::string getCharge() const;
69#ifndef SWIG
71 bool getAverageCharge(int* averageCharge, double * averageChargeDbl = 0) const;
72#else // SWIG Multiple return values
73 bool getAverageCharge(int * OUTPUT, double * OUTPUT=0) const;
74#endif
76 std::string getSeq(int seq_no) const;
77
79 std::string getComp(int comp_no) const;
80
82 std::string getTag(int tag_no) const;
83
85 double getMassMin() const;
86
88 double getMassMax() const;
89
91 double getIonMobility() const;
92
94 int getNumVals() const;
95
97 int getNumUsed() const;
98
100 std::string getStringIons1(bool includeCharges = false) const;
101
103 std::string getStringIons2(bool includeCharges = false) const;
104
106 std::string getStringIons3(bool includeCharges = false) const;
107
109 double getIntMax() const;
110
112 double getIntMin() const;
113
115 std::vector<std::pair<double,double> > getPeakList(const int ions) const;
116
118 double getPeakMass(const int ions, const int peakNo) const;
119
121 double getPeakIntensity(const int ions, const int peakNo) const;
122
124 int getPeakCharge(const int ions, const int peakNo) const;
125
127 int getNumberOfPeaks(const int ions) const;
128
130 double getTotalIonsIntensity() const;
131
133 double getPepTol() const;
134
136 std::string getPepTolUnits() const;
137
139 std::string getPepTolString() const;
140
142 std::string getINSTRUMENT(const bool unescaped = true) const;
143
145 std::string getRULES() const;
146
148 double getMinInternalMass() const;
149
151 double getMaxInternalMass() const;
152
154 std::string getIT_MODS(const bool unescaped = true) const;
155
157 int getNumberOfLocalVarMods() const;
158
160 std::string getLocalVarModName(const int num) const;
161
163 std::string getScanNumbers(const int rawFileIdx = -1) const;
164
166 void getScanNumbers(std::vector<int> &index, std::vector<std::string> &scans) const;
167
169 std::string getRawScans(const int rawFileIdx = -1) const;
170
172 void getRawScans(std::vector<int> &index, std::vector<std::string> &rawscans) const;
173
175 std::string getRetentionTimes(const int rawFileIdx = -1) const;
176
178 void getRetentionTimes(std::vector<int> &index, std::vector<std::string> &times) const;
179
181 std::string getRawfile() const;
182
184 std::string getLocus() const;
185
187 int getIndex() const;
188
190 bool hasINTERNALS() const;
191
192 protected:
193
194 ms_inputquery(std::shared_ptr<msparser_internal::ms_inputquerybase>);
195
196 private:
197
198 std::wstring getStringTitleWide(bool unescaped) const;
199
200 std::shared_ptr<msparser_internal::ms_inputquerybase> impl_;
201 }; // end of resfile_group
203} // matrix_science namespace
204
205#endif // !defined(MS_INPUTQUERY_HPP)
This class encapsulates the input queries (peak lists) in the Mascot results file.
Definition: ms_inputquery.hpp:43
Abstract base class of ms_mascotresfile_dat and ms_mascotresfile_msr.
Definition: ms_mascotresfilebase.hpp:72