OpenMS
Qscore.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Kyowon Jeong $
6 // $Authors: Kyowon Jeong $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
13 #include <OpenMS/KERNEL/Peak1D.h>
15 
16 
17 namespace OpenMS
18 {
19  class PeakGroup;
20 
31  class OPENMS_DLLAPI Qscore
32  {
33  public:
35 
37  static double getQscore(const PeakGroup* pg, const MSSpectrum& spectrum);
38 
39  static void writeAttCsvForQscoreTraining(const DeconvolvedSpectrum& deconvolved_spectrum, std::fstream& f);
40 
41  static void writeAttCsvForQscoreTrainingHeader(std::fstream& f);
42 
43  private:
45  static std::vector<double> toFeatureVector_(const PeakGroup* pg);
46 
47  static std::vector<double> weight_centroid_;
48  static std::vector<double> weight_profile_;
49  static std::vector<double> weight_CV_0_;
50  static std::vector<double> weight_CV_40_;
51  static std::vector<double> weight_CV_50_;
52  static std::vector<double> weight_CV_60_;
53  };
54 } // namespace OpenMS
A class representing a deconvolved spectrum. DeconvolvedSpectrum consists of PeakGroups representing ...
Definition: DeconvolvedSpectrum.h:30
log transformed peak. After deconvolution, all necessary information from deconvolution such as charg...
Definition: FLASHHelperClasses.h:177
The representation of a 1D spectrum.
Definition: MSSpectrum.h:44
Class describing a deconvolved mass. A mass contains multiple (LogMz) peaks of different charges and ...
Definition: PeakGroup.h:26
setQscore : quality score for PeakGroup. This class is being updated. For now, simply it calculate th...
Definition: Qscore.h:32
static std::vector< double > weight_CV_40_
Definition: Qscore.h:50
static std::vector< double > toFeatureVector_(const PeakGroup *pg)
convert a peak group to a feature vector for setQscore calculation
static void writeAttCsvForQscoreTrainingHeader(std::fstream &f)
static std::vector< double > weight_centroid_
Definition: Qscore.h:47
static void writeAttCsvForQscoreTraining(const DeconvolvedSpectrum &deconvolved_spectrum, std::fstream &f)
static std::vector< double > weight_CV_0_
Definition: Qscore.h:49
static std::vector< double > weight_profile_
Definition: Qscore.h:48
static std::vector< double > weight_CV_60_
Definition: Qscore.h:52
static double getQscore(const PeakGroup *pg, const MSSpectrum &spectrum)
get QScore for a peak group of specific abs_charge
static std::vector< double > weight_CV_50_
Definition: Qscore.h:51
FLASHHelperClasses::LogMzPeak LogMzPeak
Definition: Qscore.h:34
FLASHIda C++ to C# (or vice versa) bridge functions The functions here are called in C# to invoke fun...
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19