ProteoWizard
DataFetcherContainer.hpp
Go to the documentation of this file.
1 //
2 // $Id: DataFetcherContainer.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 /// DataFetcherContainer.hpp
25 ///
26 
27 #ifndef _DATAFETCHERCONTAINER_HPP_
28 #define _DATAFETCHERCONTAINER_HPP_
29 
31 #include "Feature_dataFetcher.hpp"
32 #include "WarpFunction.hpp"
33 #include "boost/shared_ptr.hpp"
34 
35 namespace pwiz{
36 namespace eharmony{
37 
38 typedef boost::shared_ptr<PeptideID_dataFetcher> PidfPtr;
39 typedef boost::shared_ptr<Feature_dataFetcher> FdfPtr;
40 
42 {
43  DataFetcherContainer(const PidfPtr pidf_a = PidfPtr(new PeptideID_dataFetcher()), const PidfPtr pidf_b = PidfPtr(new PeptideID_dataFetcher()), const FdfPtr fdf_a = FdfPtr(new Feature_dataFetcher()), const FdfPtr fdf_b = FdfPtr(new Feature_dataFetcher()));
44 
45  void adjustRT(bool runA=true, bool runB=true);
46  void warpRT(const WarpFunctionEnum& wfe, const int& anchorFrequency = 30, const double& anchorTol = 100);
47 
50 
53 
54  // accessors
55  vector<pair<double,double> > anchors() const { return _anchors;}
56 
57 private:
58 
59  vector<pair<double, double> > _anchors;
60  void getAnchors(const int& freq = 30, const double& tol = 100);
61 
62  pair<vector<double>, vector<double> > getPeptideRetentionTimes();
63  pair<vector<double>, vector<double> > getFeatureRetentionTimes();
64 
65  void putPeptideRetentionTimes(const pair<vector<double>, vector<double> >& times);
66  void putFeatureRetentionTimes(const pair<vector<double>, vector<double> >& times);
67 
68  // no copying
71 
72 };
73 
74 } // namespace eharmony
75 } // namespace pwiz
76 
77 #endif