Type Alias mzdata::io::mzml::MzMLWriter

source ·
pub type MzMLWriter<W> = MzMLWriterType<W, CentroidPeak, DeconvolutedPeak>;
Expand description

A specialization of MzMLWriterType for the default peak types, for common use.

Aliased Type§

struct MzMLWriter<W> {
Show 18 fields pub offset: usize, pub spectrum_count: u64, pub spectrum_counter: u64, pub chromatogram_count: u64, pub chromatogram_counter: u64, pub data_array_compression: BinaryCompressionType, pub file_description: FileDescription, pub softwares: Vec<Software>, pub data_processings: Vec<DataProcessing>, pub instrument_configurations: HashMap<u32, InstrumentConfiguration>, pub state: MzMLWriterState, pub write_index: bool, pub spectrum_offset_index: OffsetIndex, pub chromatogram_offset_index: OffsetIndex, pub tic_collector: ChromatogramCollector, pub bic_collector: ChromatogramCollector, pub wrote_summaries: bool, pub run: MassSpectrometryRun, /* private fields */
}

Fields§

§offset: usize

The current offset from the stream start

§spectrum_count: u64

The total number of spectra this mzML document will contain. This value will appear in the spectrumList element’s count attribute

§spectrum_counter: u64

The number of spectrum elements written so far.

§chromatogram_count: u64

The total number of chromatograms this mzML document will contain. This value will appear in the chromatogramList element’s count attribute

§chromatogram_counter: u64

The number of chromatograms written so far

§data_array_compression: BinaryCompressionType

The compression type to use when generating binary data arrays.

§file_description: FileDescription

The file-level metadata describing the provenance of the original data

§softwares: Vec<Software>

The list of software components that were used to process the data into its current state

§data_processings: Vec<DataProcessing>

The types of data transformations applied to (parts of) the data

§instrument_configurations: HashMap<u32, InstrumentConfiguration>

The different instrument configurations that were in use during the data acquisition.

§state: MzMLWriterState§write_index: bool§spectrum_offset_index: OffsetIndex§chromatogram_offset_index: OffsetIndex§tic_collector: ChromatogramCollector§bic_collector: ChromatogramCollector§wrote_summaries: bool§run: MassSpectrometryRun