Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages

SILACLabeler.h

Go to the documentation of this file.
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: Stephan Aiche $
00032 // $Authors: Stephan Aiche$
00033 // --------------------------------------------------------------------------
00034 
00035 #ifndef OPENMS_SIMULATION_LABELING_SILACLABELER_H
00036 #define OPENMS_SIMULATION_LABELING_SILACLABELER_H
00037 
00038 #include <OpenMS/SIMULATION/LABELING/BaseLabeler.h>
00039 
00040 namespace OpenMS
00041 {
00042 
00043 
00051   class OPENMS_DLLAPI SILACLabeler :
00052     public BaseLabeler
00053   {
00054 public:
00055 
00057     SILACLabeler();
00058 
00060     virtual ~SILACLabeler();
00061 
00063     static BaseLabeler* create()
00064     {
00065       return new SILACLabeler();
00066     }
00067 
00069     static const String getProductName()
00070     {
00071       return "SILAC";
00072     }
00073 
00074     // redeclaration of virtual methods
00075     void preCheck(Param& /* param */) const;
00076 
00077     void setUpHook(FeatureMapSimVector& /* channels */);
00078 
00079     void postDigestHook(FeatureMapSimVector& /* features_to_simulate */);
00080 
00081     void postRTHook(FeatureMapSimVector& /* features_to_simulate */);
00082 
00083     void postDetectabilityHook(FeatureMapSimVector& /* features_to_simulate */);
00084 
00085     void postIonizationHook(FeatureMapSimVector& /* features_to_simulate */);
00086 
00087     void postRawMSHook(FeatureMapSimVector& /* features_to_simulate */);
00088 
00089     void postRawTandemMSHook(FeatureMapSimVector& /* features_to_simulate */, MSSimExperiment& /* simulated map */);
00090 
00091 protected:
00092     void addModificationToPeptideHit_(Feature& feature, const String& modification) const;
00093 
00094     Feature mergeFeatures_(Feature& labeled_channel_feature, const String& unmodified_sequence, Map<String, Feature>& unlabeled_features_index, Int index_channel_id, Int labeled_channel_id) const;
00095 
00096     Feature mergeAllChannelFeatures_(Feature& heavy_channel_feature, const String& unmodified_feature_sequence, Map<String, Feature>& light_channel_feature_index, Map<String, Feature>& medium_channel_feature_index) const;
00097 
00098     String medium_channel_lysine_label_;
00099     String medium_channel_arginine_label_;
00100 
00101     String heavy_channel_lysine_label_;
00102     String heavy_channel_arginine_label_;
00103 
00104     bool canModificationBeApplied_(const String& modification_id, const String& aa) const;
00105 
00106     void applyLabelToProteinHit_(FeatureMapSim& protein_hit, const String& arginine_label, const String& lysine_label) const;
00107 
00108     void updateMembers_();
00109 
00110     String getUnmodifiedSequence_(const Feature& feature, const String& arginine_label, const String& lysine_label) const;
00111 
00112 private:
00114     static const int LIGHT_FEATURE_MAPID_;
00116     static const int MEDIUM_FEATURE_MAPID_;
00118     static const int HEAVY_FEATURE_MAPID_;
00119   };
00120 
00121 } // namespace OpenMS
00122 
00123 #endif //#ifndef OPENMS_SIMULATION_LABELING_SILACLABELER_H

OpenMS / TOPP release 1.10.0 Documentation generated on Thu Mar 7 2013 09:42:44 using doxygen 1.7.1