ProteoWizard
PeptideMatcher.hpp
Go to the documentation of this file.
1 //
2 // $Id: PeptideMatcher.hpp 1539 2009-11-19 20:12:28Z khoff $
3 //
4 //
5 // Original author: Kate Hoff <katherine.hoff@proteowizard.org>
6 //
7 // Copyright 2009 Center for Applied Molecular Medicine
8 // University of Southern California, Los Angeles, CA
9 //
10 // Licensed under the Apache License, Version 2.0 (the "License");
11 // you may not use this file except in compliance with the License.
12 // You may obtain a copy of the License at
13 //
14 // http://www.apache.org/licenses/LICENSE-2.0
15 //
16 // Unless required by applicable law or agreed to in writing, software
17 // distributed under the License is distributed on an "AS IS" BASIS,
18 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 // See the License for the specific language governing permissions and
20 // limitations under the License.
21 //
22 
23 ///
24 /// PeptideMatcher.hpp
25 ///
26 
27 #ifndef _PEPTIDEMATCHER_HPP_
28 #define _PEPTIDEMATCHER_HPP_
29 
30 #include "DataFetcherContainer.hpp"
31 
32 using namespace pwiz::data::pepxml;
33 
34 namespace pwiz{
35 namespace eharmony{
36 
37 typedef std::vector<std::pair<boost::shared_ptr<SpectrumQuery> , boost::shared_ptr<SpectrumQuery> > > PeptideMatchContainer;
38 typedef boost::shared_ptr<PeptideID_dataFetcher> PidfPtr;
39 typedef boost::shared_ptr<Feature_dataFetcher> FdfPtr;
40 
42 {
43 
44 public:
45 
47 
48  PeptideMatchContainer getMatches() const { return _matches;}
49 
50  void calculateDeltaRTDistribution(); // find mean and stdev deltaRT
51  void calculateDeltaMZDistribution();
52 
53  pair<double,double> getDeltaRTParams() const { return make_pair(_meanDeltaRT, _stdevDeltaRT); }
54  pair<double,double> getDeltaMZParams() const { return make_pair(_meanDeltaMZ, _stdevDeltaMZ); }
55 
56  bool operator==(const PeptideMatcher& that);
57  bool operator!=(const PeptideMatcher& that);
58 
59 private:
60 
62 
63  double _meanDeltaRT;
64  double _stdevDeltaRT;
65 
66  double _meanDeltaMZ;
67  double _stdevDeltaMZ;
68 
69 };
70 
71 } // namespace eharmony
72 } // namespace pwiz
73 
74 #endif //_PEPTIDEMATCHER_HPP_