OpenMS  2.6.0
MascotGenericFile.h
Go to the documentation of this file.
1 // --------------------------------------------------------------------------
2 // OpenMS -- Open-Source Mass Spectrometry
3 // --------------------------------------------------------------------------
4 // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
5 // ETH Zurich, and Freie Universitaet Berlin 2002-2020.
6 //
7 // This software is released under a three-clause BSD license:
8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above copyright
11 // notice, this list of conditions and the following disclaimer in the
12 // documentation and/or other materials provided with the distribution.
13 // * Neither the name of any author or any participating institution
14 // may be used to endorse or promote products derived from this software
15 // without specific prior written permission.
16 // For a full list of authors, refer to the file AUTHORS.
17 // --------------------------------------------------------------------------
18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 // ARE DISCLAIMED. IN NO EVENT SHALL ANY OF THE AUTHORS OR THE CONTRIBUTING
22 // INSTITUTIONS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
25 // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
27 // OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
28 // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 //
30 // --------------------------------------------------------------------------
31 // $Maintainer: Chris Bielow $
32 // $Authors: Andreas Bertsch, Chris Bielow $
33 // --------------------------------------------------------------------------
34 
35 #pragma once
36 
38 #include <OpenMS/SYSTEM/File.h>
42 
43 #include <vector>
44 #include <fstream>
45 
46 #ifdef _OPENMP
47 #include <omp.h>
48 #endif
49 
50 namespace OpenMS
51 {
61  class OPENMS_DLLAPI MascotGenericFile :
62  public ProgressLogger,
63  public DefaultParamHandler
64  {
65 public:
66 
69 
71  ~MascotGenericFile() override;
72 
74  void updateMembers_() override;
75 
77  void store(const String& filename, const PeakMap& experiment,
78  bool compact = false);
79 
81  void store(std::ostream& os, const String& filename,
82  const PeakMap& experiment, bool compact = false);
83 
91  template <typename MapType>
92  void load(const String& filename, MapType& exp)
93  {
94  if (!File::exists(filename))
95  {
96  throw Exception::FileNotFound(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, filename);
97  }
98 
99  exp.reset();
100 
101  std::ifstream is(filename.c_str());
102  // get size of file
103  is.seekg(0, std::ios::end);
104  startProgress(0, is.tellg(), "loading MGF");
105  is.seekg(0, std::ios::beg);
106 
107  UInt spectrum_number(0);
108  Size line_number(0); // carry line number for error messages within getNextSpectrum()
109 
110  typename MapType::SpectrumType spectrum;
111  spectrum.setMSLevel(2);
112  spectrum.getPrecursors().resize(1);
113  while (getNextSpectrum_(is, spectrum, line_number, spectrum_number))
114  {
115  exp.addSpectrum(spectrum);
116  setProgress(is.tellg());
117  ++spectrum_number;
118  } // next spectrum
119 
120  endProgress();
121  }
122 
130  std::pair<String, String> getHTTPPeakListEnclosure(const String& filename) const;
131 
133  void writeSpectrum(std::ostream& os, const PeakSpectrum& spec, const String& filename, const String& native_id_type_accession);
134 
135 protected:
136 
139 
141  std::map<String, String> mod_group_map_;
142 
144  void writeParameterHeader_(const String& name, std::ostream& os);
145 
147  void writeModifications_(const std::vector<String>& mods, std::ostream& os,
148  bool variable_mods = false);
149 
151  void writeHeader_(std::ostream& os);
152 
154  void writeMSExperiment_(std::ostream& os, const String& filename, const PeakMap& experiment);
155 
157  template <typename SpectrumType>
158  bool getNextSpectrum_(std::ifstream& is, SpectrumType& spectrum, Size& line_number, const Size& spectrum_number)
159  {
160  spectrum.resize(0);
161  spectrum.setNativeID(String("index=") + (spectrum_number));
162 
163  if (spectrum.metaValueExists("TITLE"))
164  {
165  spectrum.removeMetaValue("TITLE");
166  }
167  typename SpectrumType::PeakType p;
168 
169  String line;
170  // seek to next peak list block
171  while (getline(is, line, '\n'))
172  {
173  ++line_number;
174 
175  line.trim(); // remove whitespaces, line-endings etc
176 
177  // found peak list block?
178  if (line == "BEGIN IONS")
179  {
180  while (getline(is, line, '\n'))
181  {
182  ++line_number;
183  line.trim(); // remove whitespaces, line-endings etc
184 
185  if (line.empty()) continue;
186 
187  if (isdigit(line[0])) // actual data .. this comes first, since its the most common case
188  {
189  std::vector<String> split;
190  do
191  {
192  if (line.empty())
193  {
194  continue;
195  }
196 
197  line.simplify(); // merge double spaces (explicitly allowed by MGF), to prevent empty split() chunks and subsequent parse error
198  line.substitute('\t', ' '); // also accept Tab (strictly, only space(s) are allowed)
199  if (line.split(' ', split, false))
200  {
201  try
202  {
203  p.setPosition(split[0].toDouble());
204  p.setIntensity(split[1].toDouble());
205  }
206  catch (Exception::ConversionError& /*e*/)
207  {
208  throw Exception::ParseError(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, "The content '" + line + "' at line #" + String(line_number) + " could not be converted to a number! Expected two (m/z int) or three (m/z int charge) numbers separated by whitespace (space or tab).", "");
209  }
210  spectrum.push_back(p);
211  }
212  else
213  {
214  throw Exception::ParseError(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, "The content '" + line + "' at line #" + String(line_number) + " does not contain m/z and intensity values separated by whitespace (space or tab)!", "");
215  }
216  }
217  while (getline(is, line, '\n') && ++line_number && line.trim() != "END IONS"); // line.trim() is important here!
218 
219  if (line == "END IONS")
220  {
221  return true; // found end of spectrum
222  }
223  else
224  {
225  throw Exception::ParseError(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, "Reached end of file. Found \"BEGIN IONS\" but not the corresponding \"END IONS\"!", "");
226  }
227  }
228  else if (line.hasPrefix("PEPMASS")) // parse precursor position
229  {
230  String tmp = line.substr(8); // copy since we might need the original line for error reporting later
231  tmp.substitute('\t', ' ');
232  std::vector<String> split;
233  tmp.split(' ', split);
234  if (split.size() == 1)
235  {
236  spectrum.getPrecursors()[0].setMZ(split[0].trim().toDouble());
237  }
238  else if (split.size() == 2)
239  {
240  spectrum.getPrecursors()[0].setMZ(split[0].trim().toDouble());
241  spectrum.getPrecursors()[0].setIntensity(split[1].trim().toDouble());
242  }
243  else
244  {
245  throw Exception::ParseError(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, "Cannot parse PEPMASS in '" + line + "' at line #" + String(line_number) + " (expected 1 or 2 entries, but " + String(split.size()) + " were present)!", "");
246  }
247  }
248  else if (line.hasPrefix("CHARGE"))
249  {
250  String tmp = line.substr(7);
251  tmp.remove('+');
252  spectrum.getPrecursors()[0].setCharge(tmp.toInt());
253  }
254  else if (line.hasPrefix("RTINSECONDS"))
255  {
256  String tmp = line.substr(12);
257  spectrum.setRT(tmp.toDouble());
258  }
259  else if (line.hasPrefix("TITLE"))
260  {
261  // test if we have a line like "TITLE= Cmpd 1, +MSn(595.3), 10.9 min"
262  if (line.hasSubstring("min"))
263  {
264  try
265  {
266  std::vector<String> split;
267  line.split(',', split);
268  if (!split.empty())
269  {
270  for (Size i = 0; i != split.size(); ++i)
271  {
272  if (split[i].hasSubstring("min"))
273  {
274  std::vector<String> split2;
275  split[i].trim().split(' ', split2);
276  if (!split2.empty())
277  {
278  spectrum.setRT(split2[0].trim().toDouble() * 60.0);
279  }
280  }
281  }
282  }
283  }
284  catch (Exception::BaseException& /*e*/)
285  {
286  // just do nothing and write the whole title to spec
287  std::vector<String> split;
288  if (line.split('=', split))
289  {
290  if (split[1] != "") spectrum.setMetaValue("TITLE", split[1]);
291  }
292  }
293  }
294  else // just write the title as metainfo to the spectrum and add native ID to make the titles unique
295  {
296  Size firstEqual = line.find('=', 4);
297  if (firstEqual != std::string::npos)
298  {
299  if (String(spectrum.getMetaValue("TITLE")).hasSubstring(spectrum.getNativeID()))
300  {
301  spectrum.setMetaValue("TITLE", line.substr(firstEqual + 1));
302  }
303  else
304  {
305  spectrum.setMetaValue("TITLE", line.substr(firstEqual + 1) + "_" + spectrum.getNativeID());
306  }
307  }
308  }
309  }
310  }
311  }
312  }
313 
314  return false; // found end of file
315  }
316 
317  };
318 
319 } // namespace OpenMS
DefaultParamHandler.h
OpenMS::MascotRemoteQuery
Class which handles the communication between OpenMS and the Mascot server.
Definition: MascotRemoteQuery.h:56
OpenMS::TOPPBase
Base class for TOPP applications.
Definition: TOPPBase.h:144
OpenMS::Param::copy
Param copy(const String &prefix, bool remove_prefix=false) const
Returns a new Param object containing all entries that start with prefix.
FileHandler.h
OpenMS::MascotXMLFile
Used to load Mascot XML files.
Definition: MascotXMLFile.h:57
FileTypes.h
OpenMS::MzDataFile
File adapter for MzData files.
Definition: MzDataFile.h:53
MascotRemoteQuery.h
OpenMS::MascotRemoteQuery::setQuerySpectra
void setQuerySpectra(const String &exp)
sets the query spectra, given in MGF file format
OpenMS::Exception::IllegalArgument
A method or algorithm argument contains illegal values.
Definition: Exception.h:648
OpenMS::IdXMLFile::store
void store(const String &filename, const std::vector< ProteinIdentification > &protein_ids, const std::vector< PeptideIdentification > &peptide_ids, const String &document_id="")
Stores the data in an idXML file.
OpenMS::MSExperiment::reset
void reset()
Resets all internal values.
MascotXMLFile.h
OpenMS::MascotGenericFile::store
void store(const String &filename, const PeakMap &experiment, bool compact=false)
stores the experiment data in a MascotGenericFile that can be used as input for MASCOT shell executio...
OpenMS::File::basename
static String basename(const String &file)
Returns the basename of the file (without the path).
OpenMS::String::substitute
String & substitute(char from, char to)
Replaces all occurrences of the character from by the character to.
OpenMS::String::toDouble
double toDouble() const
Conversion to double.
OpenMS::PepXMLFileMascot::load
void load(const String &filename, std::map< String, std::vector< AASequence > > &peptides)
Loads peptide sequences with modifications out of a PepXML file.
OpenMS::Param::setValue
void setValue(const String &key, const DataValue &value, const String &description="", const StringList &tags=StringList())
Sets a value.
OpenMS::MetaInfoInterface::getMetaValue
const DataValue & getMetaValue(const String &name, const DataValue &default_value=DataValue::EMPTY) const
Returns the value corresponding to a string, or a default value (default: DataValue::EMPTY) if not fo...
OpenMS::MascotInfile
Mascot input file adapter.
Definition: MascotInfile.h:58
OpenMS::String
A more convenient string class.
Definition: String.h:59
OpenMS::Exception::FileNotFound
File not found exception.
Definition: Exception.h:523
OpenMS::String::trim
String & trim()
removes whitespaces (space, tab, line feed, carriage return) at the beginning and the end of the stri...
OpenMS::MSExperiment
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:77
OpenMS::SpectrumSettings::getPrecursors
const std::vector< Precursor > & getPrecursors() const
returns a const reference to the precursors
OpenMS::Exception::ConversionError
Invalid conversion exception.
Definition: Exception.h:362
OpenMS::MascotInfile::setInstrument
void setInstrument(const String &instrument)
sets the instrument type (Default: Default). Possible instruments: ESI-QUAD-TOF, MALDI-TOF-PSD,...
OpenMS::PeakFileOptions::addMSLevel
void addMSLevel(int level)
adds a desired MS level for peaks to load
OpenMS::Size
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
IdXMLFile.h
OpenMS::Constants::c
const double c
OpenMS::MascotInfile::setTaxonomy
void setTaxonomy(const String &taxonomy)
sets the taxonomy (default: All entries). See <mascot path>/config/taxonomy for possible settings.
OpenMS::PepXMLFileMascot
Used to load Mascot PepXML files.
Definition: PepXMLFileMascot.h:54
OpenMS::MzDataFile::load
void load(const String &filename, MapType &map)
Loads a map from a MzData file.
OpenMS::Peak1D::setIntensity
void setIntensity(IntensityType intensity)
Mutable access to the data point intensity (height)
Definition: Peak1D.h:112
OpenMS::Param::getValue
const DataValue & getValue(const String &key) const
Returns a value of a parameter.
OpenMS::IntList
std::vector< Int > IntList
Vector of signed integers.
Definition: ListUtils.h:55
OpenMS::File::getUniqueName
static String getUniqueName(bool include_hostname=true)
Returns a string, consisting of date, time, hostname, process id, and a incrementing number....
OpenMS::FileHandler::getOptions
PeakFileOptions & getOptions()
Mutable access to the options for loading/storing.
OpenMS::MascotGenericFile::mod_group_map_
std::map< String, String > mod_group_map_
mapping of modifications with specificity groups, that have to be treated specially (e....
Definition: MascotGenericFile.h:141
OpenMS::MascotInfile::setModifications
void setModifications(const std::vector< String > &mods)
sets the fixed modifications (default: none). See <mascot path>/config/mod_file for possible setting...
OpenMS::ProteinIdentification
Representation of a protein identification run.
Definition: ProteinIdentification.h:70
OpenMS::SpectrumSettings::PROFILE
profile data
Definition: SpectrumSettings.h:74
OpenMS::String::hasPrefix
bool hasPrefix(const String &string) const
true if String begins with string, false otherwise
OpenMS::String::hasSubstring
bool hasSubstring(const String &string) const
true if String contains the string, false otherwise
OpenMS::MSExperiment::size
Size size() const
Definition: MSExperiment.h:127
OpenMS::MascotRemoteQuery::getSearchIdentifier
String getSearchIdentifier() const
returns the search number
OpenMS::DefaultParamHandler
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
OpenMS::String::simplify
String & simplify()
merges subsequent whitespaces to one blank character
OpenMS::DateTime::now
static DateTime now()
Returns the current date and time.
OpenMS::File::writable
static bool writable(const String &file)
Return true if the file is writable.
OpenMS::MascotInfile::setMassType
void setMassType(const String &mass_type)
sets the used mass type "Monoisotopic" or "Average" (default: Monoisotopic)
OpenMS::File::exists
static bool exists(const String &file)
Method used to test if a file exists.
OpenMS
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
OpenMS::DateTime::get
void get(UInt &month, UInt &day, UInt &year, UInt &hour, UInt &minute, UInt &second) const
Fills the arguments with the date and the time.
OpenMS::DataValue::toBool
bool toBool() const
Conversion to bool.
OpenMS::MSExperiment::addSpectrum
void addSpectrum(const MSSpectrum &spectrum)
adds a spectrum to the list
OpenMS::MetaInfoInterface::removeMetaValue
void removeMetaValue(const String &name)
Removes the DataValue corresponding to name if it exists.
OpenMS::ProgressLogger
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:54
OpenMS::MascotXMLFile::load
void load(const String &filename, ProteinIdentification &protein_identification, std::vector< PeptideIdentification > &id_data, const SpectrumMetaDataLookup &lookup)
Loads data from a Mascot XML file.
OpenMS::ProteinIdentification::setPrimaryMSRunPath
void setPrimaryMSRunPath(const StringList &s, bool raw=false)
OpenMS::MetaInfoInterface::setMetaValue
void setMetaValue(const String &name, const DataValue &value)
Sets the DataValue corresponding to a name.
OpenMS::Param::exists
bool exists(const String &key) const
Tests if a parameter is set (expecting its fully qualified name, e.g., TextExporter:1:proteins_only)
ProgressLogger.h
OpenMS::SpectrumSettings::SpectrumType
SpectrumType
Spectrum peak type.
Definition: SpectrumSettings.h:70
int
OpenMS::ProteinIdentification::getHits
const std::vector< ProteinHit > & getHits() const
Returns the protein hits.
OpenMS::FileHandler
Facilitates file handling by file type recognition.
Definition: FileHandler.h:62
OpenMS::MascotInfile::setVariableModifications
void setVariableModifications(const std::vector< String > &mods)
sets the fixed modifications (default: none). See <mascot path>/config/mod_file for possible setting...
QProcess
OpenMS::MascotInfile::setDB
void setDB(const String &db)
sets the DB to use (default: MSDB). See <mascot path>/config/mascot.dat in "Databases" section for po...
OpenMS::FileHandler::loadExperiment
bool loadExperiment(const String &filename, MSExperiment &exp, FileTypes::Type force_type=FileTypes::UNKNOWN, ProgressLogger::LogType log=ProgressLogger::NONE, const bool rewrite_source_file=true, const bool compute_hash=true)
Loads a file into an MSExperiment.
OpenMS::MascotRemoteQuery::getErrorMessage
const String & getErrorMessage() const
returns the error message, if hasError can be used to check whether an error has occurred
OpenMS::FileTypes::Type
Type
Actual file types enum.
Definition: FileTypes.h:58
OpenMS::FileHandler::getType
static FileTypes::Type getType(const String &filename)
Tries to determine the file type (by name or content)
OpenMS::MascotInfile::setCharges
void setCharges(std::vector< Int > &charges)
sets the charges (default: 1+, 2+ and 3+)
MascotInfile.h
OpenMS::MascotRemoteQuery::hasError
bool hasError() const
predicate which returns true if an error occurred during the query
OpenMS::MascotInfile::setHits
void setHits(const String &hits)
sets the number of hits to report back (default: 20)
OpenMS::MascotInfile::setPeakMassTolerance
void setPeakMassTolerance(float ion_mass_tolerance)
sets the peak mass tolerance in Da (default: 1.0)
OpenMS::Peak1D::setPosition
void setPosition(PositionType const &position)
Mutable access to the position.
Definition: Peak1D.h:151
OpenMS::Exception::BaseException
Exception base class.
Definition: Exception.h:89
OpenMS::String::split
bool split(const char splitter, std::vector< String > &substrings, bool quote_protect=false) const
Splits a string into substrings using splitter as delimiter.
OpenMS::DefaultParamHandler::setParameters
void setParameters(const Param &param)
Sets the parameters.
OpenMS::MSSpectrum::setMSLevel
void setMSLevel(UInt ms_level)
Sets the MS level.
OpenMS::String::toQString
QString toQString() const
Conversion to Qt QString.
OpenMS::FileTypes::MASCOTXML
Mascot XML file format for peptide identifications (.xml)
Definition: FileTypes.h:84
MascotGenericFile.h
OpenMS::DefaultParamHandler::getParameters
const Param & getParameters() const
Non-mutable access to the parameters.
OpenMS::MascotGenericFile
Read/write Mascot generic files (MGF).
Definition: MascotGenericFile.h:61
OpenMS::MascotInfile::setCleavage
void setCleavage(const String &cleavage)
sets the enzyme used for cleavage (default: Trypsin). See <mascot path>/config/enzymes for possible ...
OpenMS::Peak1D
A 1-dimensional raw data point or peak.
Definition: Peak1D.h:54
OpenMS::StringList
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
OpenMS::UInt
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
OpenMS::MascotInfile::setMissedCleavages
void setMissedCleavages(UInt missed_cleavages)
sets the number of allowed missed cleavages (default: 1)
OpenMS::SpectrumSettings::getNativeID
const String & getNativeID() const
returns the native identifier for the spectrum, used by the acquisition software.
main
int main(int argc, const char **argv)
Definition: INIFileEditor.cpp:73
OpenMS::MascotXMLFile::initializeLookup
static void initializeLookup(SpectrumMetaDataLookup &lookup, const PeakMap &experiment, const String &scan_regex="")
Initializes a helper object for looking up spectrum meta data (RT, m/z)
OpenMS::MascotInfile::setPrecursorMassTolerance
void setPrecursorMassTolerance(float precursor_mass_tolerance)
sets the precursor mass tolerance in Da (default: 2.0)
MSExperiment.h
OpenMS::SpectrumMetaDataLookup
Helper class for looking up spectrum meta data.
Definition: SpectrumMetaDataLookup.h:142
OpenMS::File::absolutePath
static String absolutePath(const String &file)
Replaces the relative path in the argument with the absolute path.
OpenMS::FileTypes::MGF
Mascot Generic Format (.mgf)
Definition: FileTypes.h:68
OpenMS::Exception::ParseError
Parse Error exception.
Definition: Exception.h:622
OpenMS::Param::remove
void remove(const String &key)
Remove the entry key or a section key (when suffix is ':')
OpenMS::String::substr
String substr(size_t pos=0, size_t n=npos) const
Wrapper for the STL substr() method. Returns a String object with its contents initialized to a subst...
OpenMS::MetaInfoInterface::metaValueExists
bool metaValueExists(const String &name) const
Returns whether an entry with the given name exists.
OpenMS::MascotGenericFile::getNextSpectrum_
bool getNextSpectrum_(std::ifstream &is, SpectrumType &spectrum, Size &line_number, const Size &spectrum_number)
reads a spectrum block, the section between 'BEGIN IONS' and 'END IONS' of a MGF file
Definition: MascotGenericFile.h:158
OpenMS::MSExperiment::getSpectra
const std::vector< MSSpectrum > & getSpectra() const
returns the spectrum list
PepXMLFileMascot.h
OpenMS::MascotRemoteQuery::getMascotXMLResponse
const QByteArray & getMascotXMLResponse() const
returns the Mascot XML response which contains the identifications
OpenMS::FileTypes::nameToType
static Type nameToType(const String &name)
Converts a file type name into a Type.
String.h
OpenMS::FileHandler::stripExtension
static String stripExtension(const String &filename)
If filename contains an extension, it will be removed (including the '.'). Special extensions,...
MzDataFile.h
OpenMS::Param
Management and storage of parameters / INI files.
Definition: Param.h:73
OpenMS::File::getTempDirectory
static String getTempDirectory()
The current OpenMS temporary data path (for temporary files)
OpenMS::String::remove
String & remove(char what)
Remove all occurrences of the character what.
OpenMS::MascotInfile::store
void store(const String &filename, const PeakSpectrum &spec, double mz, double retention_time, String search_title)
stores the peak list in a MascotInfile that can be used as input for MASCOT shell execution
IDFilter.h
OpenMS::MascotGenericFile::store_compact_
bool store_compact_
use a compact format for storing (no zero-intensity peaks, limited number of decimal places)?
Definition: MascotGenericFile.h:138
OpenMS::Exception::FileEmpty
File is empty.
Definition: Exception.h:594
OpenMS::MSSpectrum
The representation of a 1D spectrum.
Definition: MSSpectrum.h:67
OpenMS::MSSpectrum::setRT
void setRT(double rt)
Sets the absolute retention time (in seconds)
StandardTypes.h
OpenMS::String::toInt
Int toInt() const
Conversion to int.
OpenMS::DateTime
DateTime Class.
Definition: DateTime.h:54
File.h
OpenMS::MascotInfile::setBoundary
void setBoundary(const String &boundary)
sets the boundary used for the MIME format. By default a 22 character random string is used
OpenMS::ProgressLogger::setLogType
void setLogType(LogType type) const
Sets the progress log that should be used. The default type is NONE!
OpenMS::DefaultParamHandler::writeParametersToMetaValues
static void writeParametersToMetaValues(const Param &write_this, MetaInfoInterface &write_here, const String &prefix="")
Writes all parameters to meta values.
TOPPBase.h
OpenMS::MascotGenericFile::load
void load(const String &filename, MapType &exp)
loads a Mascot Generic File into a PeakMap
Definition: MascotGenericFile.h:92
OpenMS::IdXMLFile
Used to load and store idXML files.
Definition: IdXMLFile.h:63
OpenMS::SpectrumSettings::setNativeID
void setNativeID(const String &native_id)
sets the native identifier for the spectrum, used by the acquisition software.
StringListUtils.h