OpenMS
Loading...
Searching...
No Matches
StablePairFinder.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4// --------------------------------------------------------------------------
5// $Maintainer: Timo Sachsenberg $
6// $Authors: $
7// --------------------------------------------------------------------------
8
9#ifndef OPENMS_ANALYSIS_MAPMATCHING_STABLEPAIRFINDER_H
10#define OPENMS_ANALYSIS_MAPMATCHING_STABLEPAIRFINDER_H
11
13
14namespace OpenMS
15{
16 class AASequence;
17
83 class OPENMS_DLLAPI StablePairFinder :
84 public BaseGroupFinder
85 {
86public:
87
90
93
96 {
97 }
98
106 void run(const std::vector<ConsensusMap>& input_maps,
107 ConsensusMap& result_map) override;
108
109protected:
110
112
113 enum
114 {
115 RT = Peak2D::RT,
116 MZ = Peak2D::MZ
117 };
119
120 //docu in base class
121 void updateMembers_() override;
122
131 const ConsensusFeature& feat2) const;
132
135
138
144 const AASequence& getBestHitSequence_(const PeptideIdentification& peptideIdentification) const;
145 };
146
147} // namespace OpenMS
148
149#endif // OPENMS_ANALYSIS_MAPMATCHING_STABLEPAIRFINDER_H
150
151/*
152
153 gnuplot history - how the plot was created - please do not delete this receipt
154
155 f(x,intercept,exponent)=1/(1+(abs(x)*intercept)**exponent)
156 set terminal postscript enhanced color
157 set output "choosingstablepairfinderparams.ps"
158 set size ratio .3
159 plot [-3:3] [0:1] f(x,1,1), f(x,2,1), f(x,1,2), f(x,2,2)
160
161 */
Representation of a peptide/protein sequence.
Definition AASequence.h:88
The base class of all element group finding algorithms.
Definition BaseGroupFinder.h:38
A consensus feature spanning multiple LC-MS/MS experiments.
Definition ConsensusFeature.h:45
A container for consensus elements.
Definition ConsensusMap.h:68
Represents the set of candidates (SpectrumMatches) identified for a single precursor spectrum.
Definition PeptideIdentification.h:64
This class implements a pair finding algorithm for consensus features.
Definition StablePairFinder.h:85
double second_nearest_gap_
The distance to the second nearest neighbors must be by this factor larger than the distance to the m...
Definition StablePairFinder.h:134
~StablePairFinder() override
Destructor.
Definition StablePairFinder.h:95
bool use_IDs_
Only match if peptide IDs are compatible?
Definition StablePairFinder.h:137
StablePairFinder()
Constructor.
bool compatibleIDs_(const ConsensusFeature &feat1, const ConsensusFeature &feat2) const
Checks if the peptide IDs of two features are compatible.
void run(const std::vector< ConsensusMap > &input_maps, ConsensusMap &result_map) override
Run the algorithm.
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
const AASequence & getBestHitSequence_(const PeptideIdentification &peptideIdentification) const
Returns the highest scoring peptide hit in the the given peptide identification.
BaseGroupFinder Base
Base class.
Definition StablePairFinder.h:89
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
@ RT
RT in seconds.