Matrix Science Mascot Parser toolkit
 
Loading...
Searching...
No Matches
ms_distiller_data.hpp
1/*
2##############################################################################
3# file: ms_distiller_data.hpp
4# 'msparser' toolkit
5# An extracted ion chromatogram
6##############################################################################
7# COPYRIGHT NOTICE
8# Copyright 1998-2014 Matrix Science Limited All Rights Reserved.
9#
10##############################################################################
11 * @(#)$Source: parser/inc/ms_distiller_data.hpp $
12 * @(#)$Revision: a11a1f9693803472f1a72c5139f8c548fb17b396 | MSPARSER_REL_3_0_0-2024-09-24-0-g93ebaeb4f4 $
13 * @(#)$Date: 2023-11-21 13:38:16 +0000 $
14##############################################################################
15 */
16
17#ifndef MS_DISTILLER_DATA_HPP
18#define MS_DISTILLER_DATA_HPP
19
20
21// Includes from the standard template library
22#include <string>
23#include <vector>
24
25namespace msparser_internal
26{
27 class ms_XMLHelper;
28 class ms_XMLElement;
29}
30
31namespace matrix_science
32{
33 class ms_distiller_data_quant;
34 class ms_distiller_data_search;
35
36 //=========================================================================
43
47 class MS_MASCOTRESFILE_API ms_distiller_data :
49 {
50 public:
51
53 static time_t getDistillerResfileTimestamp();
54
56 static std::vector<std::string> getRequiredSchemaFileNames();
57
59 static std::string getDistillerProjectStreamName();
60
62 virtual ~ms_distiller_data();
64
66 virtual std::string getDistillerVersion() const;
67
69 virtual int getDistillerExperimentType() const;
70
72 void copyFrom(const ms_distiller_data* right);
73
74#ifndef SWIG
75 const ms_distiller_data & operator=(const ms_distiller_data & copy);
76#endif
77
79 virtual int getSearchCount() const;
81 virtual const ms_distiller_data_search & getSearch(int index) const;
83 virtual int getLoadedSearchIndex() const;
84
86 virtual int getQuantCount() const;
88 virtual const ms_distiller_data_quant & getQuant(int index) const;
89
91 virtual const ms_distiller_data_quant * getQuantForSearch(const std::string & taskId) const;
92
94 virtual const ms_datfile & getDatfile() const;
95
97 virtual const ms_fragrulesfile & getFragRulesFile() const;
98
100 virtual const ms_quant_method & getQuantMethod() const;
101
103 virtual ms_mascotresults_params get_ms_mascotresults_params(const int searchIndex) const;
104
106 virtual bool loadXml(const char * xmlSchemaPath, const std::string & xmlText);
108 virtual bool loadXmlFile(const char * xmlSchemaPath, const std::string & xmlFilename);
110 virtual bool loadXmlStream(const char * xmlSchemaPath, matrix_science::ms_input_string_stream * xmlStream);
111
112 virtual bool saveXmlFile(const char * xmlSchemaPath, const std::string & xmlFilename);
113 virtual int addQuant(const std::string & taskId);
114
115 private:
116 bool extractXml(const char * xmlSchemaPath, msparser_internal::ms_XMLHelper & helper);
117 bool saveXml(const char * xmlSchemaPath, msparser_internal::ms_XMLHelper & helper);
118
119 int quantStreamCounter_;
120 std::vector<ms_distiller_data_search> searches_;
121 std::vector<ms_distiller_data_quant> quantStreams_;
122 ms_datfile datfile_;
123 ms_fragrulesfile fragfile_;
124 ms_quant_method quantMethod_;
125
126 msparser_internal::ms_XMLHelper * helper_;
127 std::string distillerVersion_;
128 std::string serverURL_;
129 std::string serverVersion_;
130 int distillerExperimentType_ = 0;
131 };
132 // end of quantitation_group
134 //=========================================================================
135
136} // namespace matrix_science
137
138#endif // MS_DISTILLER_DATA_HPP
139
140/*------------------------------- End of File -------------------------------*/
Encapsulates the mascot.dat file that contains the most important parameters.
Definition: ms_datfile.hpp:47
The details of a Distiller search.
Definition: ms_distiller_data_quant.hpp:44
The details of a Distiller search.
Definition: ms_distiller_data_search.hpp:52
Distiller project parameters.
Definition: ms_distiller_data.hpp:49
This class is used as a base class for several Mascot Parser classes.
Definition: ms_errors.hpp:696
This class encapsulates a complete fragmentation_rules file.
Definition: ms_fragmentationrules.hpp:209
Class which provides constructor parameters for either ms_peptidesummary or ms_proteinsummary.
Definition: ms_mascotresults_params.hpp:32
An object of this class represent a single quantitation method from quantitation.xml.
Definition: ms_quant_method.hpp:51