CycloBranch
cGraphReaderThread.h
Go to the documentation of this file.
1
7#ifndef _CGRAPHREADERTHREAD_H
8#define _CGRAPHREADERTHREAD_H
9
10#include <iostream>
11#include <string>
12#include <vector>
13#include <algorithm>
14#include <QThread>
15
16#include "core/cParameters.h"
17#include "core/cCandidateSet.h"
20
21
22using namespace std;
23
24
25class cMainThread;
26
27
31class cGraphReaderThread : public QThread {
32
33 Q_OBJECT
34
35private:
36
37 vector<cDeNovoGraphNode>* graph;
38 cBricksDatabase* bricksdatabasewithcombinations;
39 cCandidateSet* candidates;
40 cParameters* parameters;
41 cMainThread* os;
42 int lastsystemnode;
43 long long unsigned* count;
44 int scanmode;
45 bool* terminatecomputation;
46
47 int getCandidatesIter(eFragmentIonType startiontype, cCandidateSet* candidates, int nodeid, vector<string>& composition, double precursormass, int startmodifID, int endmodifID, int middlemodifID, int middlepos, vector<nodeEdge>& perspectivepath, double cummass, string& startsummary, bool* terminatecomputation);
48
49 double getCandidatePrecursorMass(string& startsummary, vector<nodeEdge>& perspectivepath);
50
51 cSummaryFormula getCandidateSummaryFormula(string& startsummary, vector<nodeEdge>& perspectivepath);
52
53public:
54
55
60
61
74 void initialize(vector<cDeNovoGraphNode>& graph, cBricksDatabase& bricksdatabasewithcombinations, cCandidateSet& candidates, cParameters* parameters, cMainThread* os, int lastsystemnode, long long unsigned& count, int scanmode, bool& terminatecomputation);
75
76
77protected:
78
79
83 void run();
84
85};
86
87
88#endif
89
The database of building blocks.
The representation of a set of peptide sequence candidates.
The representation of a node in the de novo graph.
eFragmentIonType
The types of supported fragment ions.
Definition: cFragmentIons.h:944
Definitions of program parameters.
The class representing a database of building blocks (bricks).
Definition: cBricksDatabase.h:66
The class representing a set of peptide sequence candidates.
Definition: cCandidateSet.h:18
The class representing a thread which scans the de novo graph for peptide sequence candidates.
Definition: cGraphReaderThread.h:31
void run()
The main method of the thread.
Definition: cGraphReaderThread.cpp:286
cGraphReaderThread()
The constructor.
Definition: cGraphReaderThread.cpp:257
void initialize(vector< cDeNovoGraphNode > &graph, cBricksDatabase &bricksdatabasewithcombinations, cCandidateSet &candidates, cParameters *parameters, cMainThread *os, int lastsystemnode, long long unsigned &count, int scanmode, bool &terminatecomputation)
Initialize the graph reader.
Definition: cGraphReaderThread.cpp:273
The class representing a thread launched by the command 'Search->Run'.
Definition: cMainThread.h:34
The class storing parameters of the application.
Definition: cParameters.h:82
The representation of a summary formula.
Definition: cSummaryFormula.h:59