CycloBranch
cFormulaPredictorThread.h
Go to the documentation of this file.
1
7#ifndef _CFORMULAPREDICTORTHREAD_H
8#define _CFORMULAPREDICTORTHREAD_H
9
10#include <QThread>
11#include "core/utilities.h"
14#include "core/cParameters.h"
15
16
21
25 string ionformula;
26
27
32
33
37 double mzerror;
38
39
43 string iontype;
44
45
49 int charge;
50
51};
52
53
57class cFormulaPredictorThread : public QThread {
58
59 Q_OBJECT
60
61private:
62
63 int chargevalue;
64 int maximumcombinedelements;
65 bool basicformulacheck;
66 bool advancedformulacheck;
67 bool noratiocheck;
68 double mzvalue;
69 double mzerror;
70 vector<cIonType>* selectedions;
71 vector<string>* selectedelements;
72 vector<cFormulaPredictorRowItem>* ionitems;
73 bool* success;
74 bool* terminatecomputation;
75 string* errmsg;
76
77 int generateCompoundsFormulaPredictor(vector<string>& formulas);
78
79
80public:
81
82
87
88
105 void initialize(int chargevalue, int maximumcombinedelements, bool basicformulacheck, bool advancedformulacheck, bool noratiocheck, double mzvalue, double mzerror, vector<cIonType>& selectedions, vector<string>& selectedelements, vector<cFormulaPredictorRowItem>& ionitems, bool& success, bool& terminatecomputation, string& errmsg);
106
107
108protected:
109
110
114 void run();
115
116};
117
118
119#endif
120
The database of building blocks.
Definitions of program parameters.
The representation of a summary formula.
The thread which searches molecular formulas corresponding to m/z value.
Definition: cFormulaPredictorThread.h:57
cFormulaPredictorThread()
The constructor.
Definition: cFormulaPredictorThread.cpp:265
void initialize(int chargevalue, int maximumcombinedelements, bool basicformulacheck, bool advancedformulacheck, bool noratiocheck, double mzvalue, double mzerror, vector< cIonType > &selectedions, vector< string > &selectedelements, vector< cFormulaPredictorRowItem > &ionitems, bool &success, bool &terminatecomputation, string &errmsg)
Initialize the thread.
Definition: cFormulaPredictorThread.cpp:285
void run()
The main method of the thread.
Definition: cFormulaPredictorThread.cpp:302
An auxiliary structure representing a row in the output table.
Definition: cFormulaPredictorThread.h:20
string iontype
Ion type.
Definition: cFormulaPredictorThread.h:43
double theoreticalmz
Theoretical m/z.
Definition: cFormulaPredictorThread.h:31
double mzerror
m/z error [ppm].
Definition: cFormulaPredictorThread.h:37
string ionformula
Ion formula.
Definition: cFormulaPredictorThread.h:25
int charge
Charge.
Definition: cFormulaPredictorThread.h:49
Auxiliary funtions and structures.