OpenMS
DIAPrescoring.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: Timo Sachsenberg $
6 // $Authors: Witold Wolski $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
14 
16 
17 namespace OpenMS
18 {
33  class OPENMS_DLLAPI DiaPrescore :
34  public DefaultParamHandler
35  {
36  double dia_extract_window_; //done
39 public:
40 
42 
43  DiaPrescore(double dia_extract_window, int nr_isotopes = 4, int nr_charges = 4);
44 
46 
47  void updateMembers_() override;
48 
57  const std::vector<OpenSwath::LightTransition>& lt,
58  double& dotprod,
59  double& manhattan) const;
60 
66  OpenSwath::LightTargetedExperiment& transition_exp_used,
67  OpenSwath::IDataFrameWriter* ivw) const;
68  };
69 
70 
71 }
72 
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:66
Scoring of an spectrum given library intensities of a transition group.
Definition: DIAPrescoring.h:35
int nr_charges_
Definition: DIAPrescoring.h:38
int nr_isotopes_
Definition: DIAPrescoring.h:37
void score(OpenSwath::SpectrumPtr spec, const std::vector< OpenSwath::LightTransition > &lt, double &dotprod, double &manhattan) const
Score a spectrum given a transition group.
double dia_extract_window_
Definition: DIAPrescoring.h:36
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
DiaPrescore(double dia_extract_window, int nr_isotopes=4, int nr_charges=4)
void operator()(const OpenSwath::SpectrumAccessPtr &swath_ptr, OpenSwath::LightTargetedExperiment &transition_exp_used, OpenSwath::IDataFrameWriter *ivw) const
Compute manhattan and dotprod score for all spectra which can be accessed by the SpectrumAccessPtr fo...
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22
boost::shared_ptr< Spectrum > SpectrumPtr
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/DataStructures.h:270
boost::shared_ptr< ISpectrumAccess > SpectrumAccessPtr
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:61
Definition: DataFrameWriter.h:20
Definition: TransitionExperiment.h:185