OpenMS
Qvalue.h
Go to the documentation of this file.
1 // Copyright (c) 2002-2023, 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>
14 
15 namespace OpenMS
16 {
17  class PeakGroup;
18 
24  class OPENMS_DLLAPI Qvalue
25  {
26  public:
28 
31  void static updatePeakGroupQvalues(std::vector<DeconvolvedSpectrum>& deconvolved_spectra
32  // std::vector<DeconvolvedSpectrum>& deconvolved_decoy_spectra,
33  // bool in_features
34  );
35 
36  private:
38  static uint getBinNumber(double qscore, uint total_bin_number);
40  static std::vector<double> getDistribution(const std::vector<double>& qscores, uint bin_number);
41 
43  static std::vector<double> getDistributionWeights(const std::vector<double>& mixed_dist, const std::vector<std::vector<double>>& comp_dists, uint num_iterations = 100);
44  };
45 } // namespace OpenMS
log transformed peak. After deconvolution, all necessary information from deconvolution such as charg...
Definition: FLASHDeconvHelperStructs.h:166
Qvalue : contains functions to calculate Qvalues from deconvolution quality score.
Definition: Qvalue.h:25
FLASHDeconvHelperStructs::LogMzPeak LogMzPeak
Definition: Qvalue.h:27
static std::vector< double > getDistribution(const std::vector< double > &qscores, uint bin_number)
get the setQscore distribution
static void updatePeakGroupQvalues(std::vector< DeconvolvedSpectrum > &deconvolved_spectra)
static std::vector< double > getDistributionWeights(const std::vector< double > &mixed_dist, const std::vector< std::vector< double >> &comp_dists, uint num_iterations=100)
get the weights of different dummy types.
static uint getBinNumber(double qscore, uint total_bin_number)
get a bin number given qvalue. qvalue is calculated per bin (bin from 0 to 1).
FLASHIda C++ to C# (or vice versa) bridge functions The functions here are called in C# to invoke fun...
Definition: FeatureDeconvolution.h:22