 |
OpenMS
3.0.0
|
|
Go to the documentation of this file.
143 void endElement(
const XMLCh*
const ,
const XMLCh*
const ,
const XMLCh*
const qname)
override;
146 void startElement(
const XMLCh*
const ,
const XMLCh*
const ,
const XMLCh*
const qname,
const xercesc::Attributes& attributes)
override;
149 void characters(
const XMLCh*
const chars,
const XMLSize_t length)
override;
152 void writeTo(std::ostream& os)
override;
176 void getCounts(
Size& spectra_counts,
Size& chromatogram_counts);
196 void setLoadDetail(
const LOADDETAIL d)
override;
225 void populateSpectraWithData_();
233 void populateChromatogramsWithData_();
240 void addSpectrumMetaData_(
const std::vector<MzMLHandlerHelper::BinaryData>& input_data,
259 void populateSpectraWithData_(std::vector<MzMLHandlerHelper::BinaryData>& input_data,
276 void populateChromatogramsWithData_(std::vector<MzMLHandlerHelper::BinaryData>& input_data,
282 void fillChromatogramData_();
285 void handleCVParam_(
const String& parent_parent_tag,
290 const String& unit_accession =
"");
293 void handleUserParam_(
const String& parent_parent_tag,
298 const String& unit_accession =
"");
308 void writeHeader_(std::ostream& os,
310 std::vector<std::vector< ConstDataProcessingPtr > >& dps,
315 void writeSpectrum_(std::ostream& os,
319 bool renew_native_ids,
320 std::vector<std::vector< ConstDataProcessingPtr > >& dps);
323 void writeChromatogram_(std::ostream& os,
328 template <
typename ContainerT>
329 void writeContainerData_(std::ostream& os,
const PeakFileOptions& pf_options_,
const ContainerT& container,
String array_type);
343 template <
typename DataType>
344 void writeBinaryDataArray_(std::ostream& os,
346 std::vector<DataType>& data,
364 void writeBinaryFloatDataArray_(std::ostream& os,
367 const Size spec_chrom_idx,
368 const Size array_idx,
382 void writeDataProcessing_(std::ostream& os,
const String&
id,
const std::vector< ConstDataProcessingPtr >& dps,
const Internal::MzMLValidator& validator);
423 bool in_spectrum_list_{
false };
425 bool skip_spectrum_{
false };
427 bool skip_chromatogram_{
false };
429 bool rt_set_{
false };
433 std::map<String, std::vector<SemanticValidator::CVTerm> >
ref_param_;
507 Int scan_count_total_{ -1 };
508 Int chrom_count_total_{ -1 };
Description of the software used for processing.
Definition: Software.h:48
const ProgressLogger & logger_
Progress logger.
Definition: MzMLHandler.h:499
std::map< String, Sample > samples_
The sample list: id => Sample.
Definition: MzMLHandler.h:437
CVMappings mapping_
Definition: MzMLHandler.h:513
Representation of a controlled vocabulary.
Definition: ControlledVocabulary.h:54
Base class for XML handlers.
Definition: XMLHandler.h:323
The interface of a consumer of spectra and chromatograms.
Definition: IMSDataConsumer.h:69
MzMLHandlerHelper::BinaryData BinaryData
Definition: MzMLHandler.h:212
String current_id_
Id of the current list. Used for referencing param group, source file, sample, software,...
Definition: MzMLHandler.h:431
PeakMap MapType
XML handler for MzDataFile.
Definition: MzDataHandler.h:59
A more convenient string class.
Definition: String.h:58
std::vector< std::pair< std::string, Int64 > > spectra_offsets_
Stores binary offsets for each <spectrum> tag.
Definition: MzMLHandler.h:494
const ControlledVocabulary & cv_
Controlled vocabulary (psi-ms from OpenMS/share/OpenMS/CV/psi-ms.obo)
Definition: MzMLHandler.h:512
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:70
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
const double c
Definition: Constants.h:209
std::map< std::pair< String, String >, bool > cached_terms_
CV terms-path-combinations that have been checked in validateCV_()
Definition: MzMLHandler.h:443
std::map< String, std::vector< SemanticValidator::CVTerm > > ref_param_
The referencing param groups: id => array (accession, value)
Definition: MzMLHandler.h:433
Size default_array_length
Definition: MzMLHandler.h:461
LOADDETAIL
Definition: XMLHandler.h:347
Data necessary to generate a single chromatogram.
Definition: MzMLHandler.h:475
Representation of controlled vocabulary mapping rules (for PSI formats)
Definition: CVMappings.h:56
PeakFileOptions options_
Options that can be set for loading/storing.
Definition: MzMLHandler.h:410
std::map< String, Instrument > instruments_
The data processing list: id => Instrument.
Definition: MzMLHandler.h:441
Precursor meta information.
Definition: Precursor.h:58
MapType::ChromatogramPeakType ChromatogramPeakType
Chromatogram peak type.
Definition: MzMLHandler.h:206
int Int
Signed integer type.
Definition: Types.h:102
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Representation for binary data in mzML.
Definition: MzMLHandlerHelper.h:69
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:52
Class to hold strings, numeric values, lists of strings and lists of numeric values.
Definition: DataValue.h:58
ChromatogramType chromatogram
Definition: MzMLHandler.h:479
A 1-dimensional raw data point or peak for chromatograms.
Definition: ChromatogramPeak.h:53
MapType::PeakType PeakType
Peak type.
Definition: MzMLHandler.h:204
Size default_array_length_
The default number of peaks in the current spectrum.
Definition: MzMLHandler.h:421
MSSpectrum SpectrumType
Definition: MzDataHandler.h:60
std::vector< BinaryData > data
Definition: MzMLHandler.h:460
Semantically validates MzXML files.
Definition: MzMLValidator.h:49
SpectrumType spectrum
Definition: MzMLHandler.h:462
ChromatogramType chromatogram_
The current chromatogram.
Definition: MzMLHandler.h:417
MSSpectrum SpectrumType
Spectrum type.
Definition: MzMLHandler.h:208
A 1-dimensional raw data point or peak.
Definition: Peak1D.h:53
std::vector< BinaryData > bin_data_
The spectrum data (or chromatogram data)
Definition: MzMLHandler.h:419
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
std::map< String, SourceFile > source_files_
The source files: id => SourceFile.
Definition: MzMLHandler.h:435
String default_processing_
id of the default data processing (used when no processing is defined)
Definition: MzMLHandler.h:447
Representation of a CV term.
Definition: ControlledVocabulary.h:60
MSChromatogram ChromatogramType
Definition: MzDataHandler.h:61
Options for loading files containing peak data.
Definition: PeakFileOptions.h:47
The representation of a chromatogram.
Definition: MSChromatogram.h:53
Description of a file location, used to store the origin of (meta) data.
Definition: SourceFile.h:46
std::map< String, std::vector< DataProcessingPtr > > processing_
The data processing list: id => Instrument.
Definition: MzMLHandler.h:445
std::vector< ChromatogramData > chromatogram_data_
Vector of chromatogram data stored for later parallel processing.
Definition: MzMLHandler.h:483
MSChromatogram ChromatogramType
Spectrum type.
Definition: MzMLHandler.h:210
std::vector< std::pair< std::string, Int64 > > chromatograms_offsets_
Stores binary offsets for each <chromatogram> tag.
Definition: MzMLHandler.h:495
Product meta information.
Definition: Product.h:48
std::map< String, Software > software_
The software list: id => Software.
Definition: MzMLHandler.h:439
The representation of a 1D spectrum.
Definition: MSSpectrum.h:66
Float data array class.
Definition: DataArrays.h:45
Data necessary to generate a single spectrum.
Definition: MzMLHandler.h:458
std::vector< SpectrumData > spectrum_data_
Vector of spectrum data stored for later parallel processing.
Definition: MzMLHandler.h:466
Handler for mzML file format.
Definition: MzMLHandler.h:118