OpenMS
DIAPrescoring.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: Timo Sachsenberg $
6 // $Authors: Witold Wolski $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
14 
17 
18 namespace OpenMS
19 {
34  class OPENMS_DLLAPI DiaPrescore :
35  public DefaultParamHandler
36  {
37  double dia_extract_window_; //done
40 public:
41 
43 
44  DiaPrescore(double dia_extract_window, int nr_isotopes = 4, int nr_charges = 4);
45 
47 
48  void updateMembers_() override;
49 
57  void score(const SpectrumSequence& spec,
58  const std::vector<OpenSwath::LightTransition>& lt,
59  const RangeMobility& im_range,
60  double& dotprod,
61  double& manhattan) const;
62 
68  OpenSwath::LightTargetedExperiment& transition_exp_used, const RangeMobility& range_im,
69  OpenSwath::IDataFrameWriter* ivw) const;
70  };
71 
72 
73 }
74 
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:36
int nr_charges_
Definition: DIAPrescoring.h:39
void operator()(const OpenSwath::SpectrumAccessPtr &swath_ptr, OpenSwath::LightTargetedExperiment &transition_exp_used, const RangeMobility &range_im, OpenSwath::IDataFrameWriter *ivw) const
Compute manhattan and dotprod score for all spectra which can be accessed by the SpectrumAccessPtr fo...
int nr_isotopes_
Definition: DIAPrescoring.h:38
double dia_extract_window_
Definition: DIAPrescoring.h:37
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
void score(const SpectrumSequence &spec, const std::vector< OpenSwath::LightTransition > &lt, const RangeMobility &im_range, double &dotprod, double &manhattan) const
Score a spectrum given a transition group.
DiaPrescore(double dia_extract_window, int nr_isotopes=4, int nr_charges=4)
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
std::vector< OpenSwath::SpectrumPtr > SpectrumSequence
a vector of spectrum pointers that DIA scores can operate on, allows for clever integration of only t...
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:20
boost::shared_ptr< ISpectrumAccess > SpectrumAccessPtr
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:131
Definition: RangeManager.h:466
Definition: DataFrameWriter.h:20
Definition: TransitionExperiment.h:185