CycloBranch
cTheoreticalSpectrumList.h
Go to the documentation of this file.
1
7#ifndef _CTHEORETICALSPECTRUMLIST_H
8#define _CTHEORETICALSPECTRUMLIST_H
9
10#include <algorithm>
11#include <list>
12#include <QMutex>
13
18
19class cMainThread;
20
21
26
27 vector<vector<cTheoreticalSpectrum> > theoreticalspectra;
28 list<cTheoreticalSpectrum> spectrumbuffer;
29 cMainThread* os;
30 cParameters* parameters;
31 cDeNovoGraph* graph;
32
33 double currentworstscore;
34
35 QMutex mutex;
36
37 double getCurrentWorstScore();
38
39 void computeNumbersOfCompletedSeries(int fileid);
40
41 void fixRegularExpression(string& s);
42
43public:
44
45
50
51
55 void clear();
56
57
62 void clear(int fileid);
63
64
71 void initialize(cMainThread& os, cParameters& parameters, cDeNovoGraph* graph);
72
73
79 void add(int fileid, cTheoreticalSpectrum& theoreticalspectrum);
80
81
88 cTheoreticalSpectrum& get(int fileid, int order);
89
90
95 int size();
96
97
103 int size(int fileid);
104
105
110 void resize(int size);
111
112
118 void resize(int fileid, int size);
119
120
128 int parallelCompareAndStore(int fileid, cCandidateSet& candidates, bool& terminatecomputation);
129
130
139 double updatekNNList(cTheoreticalSpectrum& theoreticalspectrum, int theoreticalpeaksrealsize, double score, regex* rxsearchedsequence);
140
141
146 void sortAndFitSize(int fileid);
147
148};
149
150
151#endif
152
The thread for an initial check of LC-MS and MSI spectra.
The thread for comparison of a theoretical spectrum with a peak list (MS1 level).
The thread for comparison of a theoretical spectrum with a peak list (MS2 level).
The thread for generating a theoretical spectrum (MS1 level).
The class representing a set of peptide sequence candidates.
Definition: cCandidateSet.h:18
The class implementing the de novo graph.
Definition: cDeNovoGraph.h:46
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 class representing a theoretical mass spectrum.
Definition: cTheoreticalSpectrum.h:106
The class representing lists of theoretical spectra.
Definition: cTheoreticalSpectrumList.h:25
void initialize(cMainThread &os, cParameters &parameters, cDeNovoGraph *graph)
Initialize the list.
Definition: cTheoreticalSpectrumList.cpp:71
cTheoreticalSpectrumList()
The constructor.
Definition: cTheoreticalSpectrumList.cpp:50
int parallelCompareAndStore(int fileid, cCandidateSet &candidates, bool &terminatecomputation)
Parallel comparison of theoretical spectra with an experimental spectrum.
Definition: cTheoreticalSpectrumList.cpp:108
void resize(int size)
Resize the vector of files.
Definition: cTheoreticalSpectrumList.cpp:98
int size()
Get the number of files.
Definition: cTheoreticalSpectrumList.cpp:88
double updatekNNList(cTheoreticalSpectrum &theoreticalspectrum, int theoreticalpeaksrealsize, double score, regex *rxsearchedsequence)
Update the kNN list of peptide sequence candidates (thread-safe).
Definition: cTheoreticalSpectrumList.cpp:398
void add(int fileid, cTheoreticalSpectrum &theoreticalspectrum)
Add a spectrum to the list.
Definition: cTheoreticalSpectrumList.cpp:78
cTheoreticalSpectrum & get(int fileid, int order)
Get a reference to a spectrum.
Definition: cTheoreticalSpectrumList.cpp:83
void sortAndFitSize(int fileid)
Sort the list according to a score defined by cParameters::scoretype and crop the list according cPar...
Definition: cTheoreticalSpectrumList.cpp:512
void clear()
Clear the class.
Definition: cTheoreticalSpectrumList.cpp:55