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

SequestInfile.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: Andreas Bertsch $
00032 // $Authors: Martin Langwisch $
00033 // --------------------------------------------------------------------------
00034 
00035 #ifndef OPENMS_FORMAT_SEQUESTINFILE_H
00036 #define OPENMS_FORMAT_SEQUESTINFILE_H
00037 
00038 #include <OpenMS/DATASTRUCTURES/String.h>
00039 
00040 #include <map>
00041 
00042 
00043 namespace OpenMS
00044 {
00052   class OPENMS_DLLAPI SequestInfile
00053   {
00054 public:
00056     SequestInfile();
00057 
00059     SequestInfile(const SequestInfile & sequest_infile);
00060 
00062     virtual ~SequestInfile();
00063 
00065     SequestInfile & operator=(const SequestInfile & sequest_infile);
00066 
00068     bool operator==(const SequestInfile & sequest_infile) const;
00069 
00074     void store(const String & filename);
00075 
00077     const String getEnzymeInfoAsString() const;
00078 
00080     const String & getDatabase() const;
00082     void setDatabase(const String & database);
00083 
00085     const String & getNeutralLossesForIons() const;
00087     void setNeutralLossesForIons(const String & neutral_losses_for_ions);
00088 
00090     const String & getIonSeriesWeights() const;
00092     void setIonSeriesWeights(const String & ion_series_weights);
00093 
00095     const String & getPartialSequence() const;
00097     void setPartialSequence(const String & partial_sequence);
00098 
00100     const String & getSequenceHeaderFilter() const;
00102     void setSequenceHeaderFilter(const String & sequence_header_filter);
00103 
00105     const String & getProteinMassFilter() const;
00107     void setProteinMassFilter(const String & protein_mass_filter);
00108 
00109 
00111     Real getPeakMassTolerance() const;
00113     void setPeakMassTolerance(Real peak_mass_tolerance);
00114 
00116     Real getPrecursorMassTolerance() const;
00118     void setPrecursorMassTolerance(Real precursor_mass_tolerance);
00119 
00121     Real getMatchPeakTolerance() const;
00123     void setMatchPeakTolerance(Real match_peak_tolerance);
00124 
00126     Real getIonCutoffPercentage() const;
00128     void setIonCutoffPercentage(Real ion_cutoff_percentage);
00129 
00131     Size getPeptideMassUnit() const;
00133     void setPeptideMassUnit(Size peptide_mass_unit);
00134 
00136     Size getOutputLines() const;
00138     void setOutputLines(Size output_lines);
00139 
00141     Size getEnzymeNumber() const;
00143     String getEnzymeName() const;
00145     Size setEnzyme(String enzyme_name);
00146 
00148     Size getMaxAAPerModPerPeptide() const;
00150     void setMaxAAPerModPerPeptide(Size max_aa_per_mod_per_peptide);
00151 
00153     Size getMaxModsPerPeptide() const;
00155     void setMaxModsPerPeptide(Size max_mods_per_peptide);
00156 
00158     Size getNucleotideReadingFrame() const;
00170     void setNucleotideReadingFrame(Size nucleotide_reading_frame);
00171 
00173     Size getMaxInternalCleavageSites() const;
00175     void setMaxInternalCleavageSites(Size max_internal_cleavage_sites);
00176 
00178     Size getMatchPeakCount() const;
00180     void setMatchPeakCount(Size match_peak_count);
00181 
00183     Size getMatchPeakAllowedError() const;
00185     void setMatchPeakAllowedError(Size match_peak_allowed_error);
00186 
00187 
00189     bool getShowFragmentIons() const;
00191     void setShowFragmentIons(bool show_fragments);
00192 
00194     bool getPrintDuplicateReferences() const;
00196     void setPrintDuplicateReferences(bool print_duplicate_references);
00197 
00199     bool getRemovePrecursorNearPeaks() const;
00201     void setRemovePrecursorNearPeaks(bool remove_precursor_near_peaks);
00202 
00204     bool getMassTypeParent() const;
00206     void setMassTypeParent(bool mass_type_parent);
00207 
00209     bool getMassTypeFragment() const;
00211     void setMassTypeFragment(bool mass_type_fragment);
00212 
00214     bool getNormalizeXcorr() const;
00216     void setNormalizeXcorr(bool normalize_xcorr);
00217 
00219     bool getResiduesInUpperCase() const;
00221     void setResiduesInUpperCase(bool residues_in_upper_case);
00222 
00226     void addEnzymeInfo(std::vector<String> & enzyme_info);
00227 
00229     const std::map<String, std::vector<String> > & getModifications() const;
00230 
00242     void handlePTMs(const String & modification_line, const String & modifications_filename, const bool monoisotopic);
00243 
00244 protected:
00246     const std::map<String, std::vector<String> > & getEnzymeInfo_() const;
00247 
00249     void setStandardEnzymeInfo_();
00250 
00251     std::map<String, std::vector<String> > enzyme_info_;            
00252     String database_;         
00253     String snd_database_;         
00254     String neutral_losses_for_ions_;         
00255     String ion_series_weights_;        
00256     String partial_sequence_;         
00257     String sequence_header_filter_;        
00258     String protein_mass_filter_;
00259 
00260     Real precursor_mass_tolerance_;        
00261     Real peak_mass_tolerance_;        
00262     Real match_peak_tolerance_;        
00263     Real ion_cutoff_percentage_;        
00264 
00265     Size peptide_mass_unit_;        
00266     Size output_lines_;        
00267     Size enzyme_number_;        
00268     Size max_AA_per_mod_per_peptide_;        
00269     Size max_mods_per_peptide_;        
00270     Size nucleotide_reading_frame_;        
00271 
00272 
00273 
00274 
00275 
00276 
00277 
00278 
00279 
00280 
00281     Size max_internal_cleavage_sites_;        
00282     Size match_peak_count_;        
00283     Size match_peak_allowed_error_;        
00284 
00285 
00286     bool show_fragment_ions_;        
00287     bool print_duplicate_references_;        
00288     bool remove_precursor_near_peaks_;        
00289     bool mass_type_parent_;        
00290     bool mass_type_fragment_;        
00291     bool normalize_xcorr_;        
00292     bool residues_in_upper_case_;        
00293 
00294     std::map<String, std::vector<String> > PTMname_residues_mass_type_;           
00295   };
00296 
00297 } // namespace OpenMS
00298 
00299 #endif // OPENMS_FORMAT_SEQUESTINFILE_H

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