00001 // -------------------------------------------------------------------------- 00002 // OpenMS -- Open-Source Mass Spectrometry 00003 // -------------------------------------------------------------------------- 00004 // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, 00005 // ETH Zurich, and Freie Universitaet Berlin 2002-2012. 00006 // 00007 // This software is released under a three-clause BSD license: 00008 // * Redistributions of source code must retain the above copyright 00009 // notice, this list of conditions and the following disclaimer. 00010 // * Redistributions in binary form must reproduce the above copyright 00011 // notice, this list of conditions and the following disclaimer in the 00012 // documentation and/or other materials provided with the distribution. 00013 // * Neither the name of any author or any participating institution 00014 // may be used to endorse or promote products derived from this software 00015 // without specific prior written permission. 00016 // For a full list of authors, refer to the file AUTHORS. 00017 // -------------------------------------------------------------------------- 00018 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00019 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00020 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00021 // ARE DISCLAIMED. IN NO EVENT SHALL ANY OF THE AUTHORS OR THE CONTRIBUTING 00022 // INSTITUTIONS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 00023 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 00024 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 00025 // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 00026 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 00027 // OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 00028 // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00029 // 00030 // -------------------------------------------------------------------------- 00031 // $Maintainer: Florian Zeller $ 00032 // $Authors: Lukas Mueller, Markus Mueller $ 00033 // -------------------------------------------------------------------------- 00034 // 00036 // 00037 // written by Lukas N Mueller, 30.3.05 00038 // Lukas.Mueller@imsb.biol.ethz.ch 00039 // Group of Prof. Ruedi Aebersold, IMSB, ETH Hoenggerberg, Zurich 00040 // 00041 // Ported to OpenMS by Florian Zeller, florian.zeller@bsse.ethz.ch 00042 // December 2010 00043 // 00044 00045 #ifndef OPENMS_TRANSFORMATIONS_FEATUREFINDER_SUPERHIRN_FTPEAKDETECTCONTROLLER_H 00046 #define OPENMS_TRANSFORMATIONS_FEATUREFINDER_SUPERHIRN_FTPEAKDETECTCONTROLLER_H 00047 00048 #include <boost/shared_ptr.hpp> 00049 00050 namespace OpenMS 00051 { 00052 00053 class OPENMS_DLLAPI FTPeakDetectController 00054 { 00055 00057 // declaration of the private members: 00058 00059 private: 00060 00062 // declaration of the public members: 00063 00064 // LCMS runs 00065 //LCMS* THIS_LCMS; 00066 LCMS * lcms_; 00067 // std::vector<SHFeature> fakeFeatureList_; 00068 std::vector<LCMS> lcmsRuns_; 00069 00070 // paths: 00071 std::string targetMzXML; 00072 std::string SOURCE_DIR; 00073 std::string OUTPUT_DIR; 00074 00075 public: 00076 00077 typedef std::pair<double, boost::shared_ptr<RawData> > Map; 00078 typedef std::vector<Map> Vec; 00079 00080 // static bool CREATE_FEATURE_ELUTION_PROFILES; 00081 // static bool LCelutionPeakDebugging; 00082 // static double LCelutionPeakMassMin; 00083 // static double LCelutionPeakMassMax; 00084 00085 // static MS2Feature* SearchedM2Feature; 00086 00087 // static bool FEATURE_FAKE_INSERTION_BASED_ON_MS2_FEATURE; 00088 00089 // class destructor 00090 ~FTPeakDetectController(); 00091 00092 // class constructor 00093 FTPeakDetectController(); 00094 // class copy constructor 00095 FTPeakDetectController(const FTPeakDetectController &); 00096 00098 // function for batch processing of mzXML data 00099 // parses LC-MS from runs from a directory or file of raw mzXML data: 00100 void parseMzXMLData(); 00101 00103 // mzXML parsing functions for a single MzXML file: 00104 // start the scan parsing of a mzXML file: 00105 void startScanParsing(Vec datavec); 00106 00107 // **** for the MS1 level post processing: 00108 // process MS1 level data 00109 void process_MS1_level_data_structure(ProcessData *); 00110 // adds an elution peak to the LC/MS run: 00111 void add_raw_peak_to_LC_MS_run(LCElutionPeak *); 00112 // function to add the elution profile to the feature: 00113 void addLCelutionProfile(SHFeature *, LCElutionPeak *); 00114 00116 // reads already paths of existing LC-MS runs in xml format into the 00117 // memory 00118 // for now, open file system for every check, but otherwise could eb done 00119 // in the constructor 00120 bool checkIfFeatureExtractionExists(std::string); 00121 00122 // **** for the MS2 level post processing: 00123 // process MS2 level data 00124 void process_MS2_level_data_structure(ProcessData *); 00125 // processes the tracted signals on teh MS2 level 00126 void extract_MS2_elution_features(); 00127 // combine the MS2 feature trace data to the MS1 features: 00128 void associateMS2FeatureToMS1Feature(MS2Feature *); 00129 // add an observed MS2 feature to the MS1 feature 00130 // if an observation is already there, then 00131 // construct a merged MS2 feature 00132 void addMS2FeatureToMS1Feature(MS2Feature *, SHFeature *); 00133 00134 // construct here fake ms1 features based on a observed MS2 feature 00135 // which however could not be matched to a exiting ms1 feature 00136 void constructMS1FeatureFromMS2Feature(MS2Feature *); 00137 00139 // write a parsed LC/MS into directory: 00140 void write_out_parsed_LC_MS(LCMS *); 00141 // add fake MS/MS information for the MS1 feature: 00142 void addFakeMSMSToFeature(SHFeature *); 00143 00144 00146 // overload operators: 00147 FTPeakDetectController & operator=(const FTPeakDetectController &); 00148 FTPeakDetectController & operator<=(const FTPeakDetectController &); 00149 FTPeakDetectController & operator>=(const FTPeakDetectController &); 00150 FTPeakDetectController & operator<(const FTPeakDetectController &); 00151 FTPeakDetectController & operator>(const FTPeakDetectController &); 00152 00154 // start here all the get / set 00155 // function to access the 00156 // variables of the class 00157 00158 // target file: 00159 void set_target_file(std::string IN); 00160 std::string get_target_file(); 00161 00162 // get the vector of LC/MS runs: 00163 //std::vector<LCMS> getParsedData(); 00164 //bool getParsedDataEmpty(); 00165 //std::vector<LCMS>::iterator get_parsed_DATA_START(); 00166 //std::vector<LCMS>::iterator get_parsed_DATA_END(); 00167 LCMS * getLCMS(); 00168 }; 00169 00170 inline void FTPeakDetectController::set_target_file(std::string IN) 00171 { 00172 targetMzXML = IN; 00173 } 00174 00175 inline std::string FTPeakDetectController::get_target_file() 00176 { 00177 return targetMzXML; 00178 } 00179 00180 /* 00181 // get the vector of LC/MS runs: 00182 inline std::vector<LCMS> FTPeakDetectController::getParsedData() 00183 { 00184 return lcmsRuns_; 00185 } 00186 00187 inline bool FTPeakDetectController::getParsedDataEmpty() 00188 { 00189 return LC_MS_RUNS.empty(); 00190 } 00191 00192 inline std::vector<LCMS>::iterator FTPeakDetectController::get_parsed_DATA_START() 00193 { 00194 return LC_MS_RUNS.begin(); 00195 } 00196 00197 inline std::vector<LCMS>::iterator FTPeakDetectController::get_parsed_DATA_END() 00198 { 00199 return LC_MS_RUNS.end(); 00200 } 00201 */ 00202 00203 inline LCMS * FTPeakDetectController::getLCMS() 00204 { 00205 return lcms_; 00206 } 00207 00208 } // ns 00209 00210 #endif // OPENMS_TRANSFORMATIONS_FEATUREFINDER_SUPERHIRN_FTPEAKDETECTCONTROLLER_H
| OpenMS / TOPP release 1.10.0 | Documentation generated on Thu Mar 7 2013 09:42:39 using doxygen 1.7.1 |