Expand description
openproteo-core is the shared foundation for the open Rust mass-spec
parsers (opentfraw, opentimstdf, openwraw).
It exposes:
- Vendor-neutral spectrum / chromatogram / run records:
SpectrumRecord,PrecursorInfo,ChromatogramRecord,RunMetadata,CvTerm. - Shared enums:
Polarity,ScanMode,Analyzer,MsPower,Activation. - A trait every vendor parser implements:
SpectrumSource. - One canonical mzML 1.1.0 writer:
write_mzmlandwrite_indexed_mzml.
Each vendor crate is a standalone tool (a user can pull in opentfraw
alone and get parsing and mzML export); openproteo-core is the
shared vocabulary that keeps the three parsers in lock-step.
Modules§
- conformance
- Conformance checks for any
crate::SpectrumSource.
Structs§
- Chromatogram
Record - A chromatogram trace (TIC, BPC, SRM/MRM transition).
- CvTerm
- A PSI-MS controlled-vocabulary term.
- Precursor
Info - Precursor metadata for an MS2+ spectrum.
- RunMetadata
- Run-level metadata.
- Spectrum
Record - One fully-decoded spectrum.
Enums§
- Activation
- Activation method used for MSn fragmentation.
- Analyzer
- Detector / mass analyzer family.
- Error
- Stack-wide error type. Vendor errors are erased into a boxed trait object so this enum stays version-stable as vendor crates evolve.
- Mobility
Array Kind - Unit + meaning of a per-peak ion mobility array.
- MsPower
- MSn order (MS1, MS2, …).
- Polarity
- Scan polarity.
- Scan
Mode - Whether a spectrum holds centroided peak picks or the raw profile signal.
Constants§
- VERSION
- Crate version (set from
Cargo.toml).
Traits§
- Spectrum
Source - A source of decoded mass spectra.
Functions§
- write_
indexed_ mzml - Write the source’s spectra as indexed mzML 1.1.0 (with
<indexList>and<fileChecksum>trailer). - write_
mzml - Write the source’s spectra as mzML 1.1.0 (un-indexed).
Type Aliases§
- Result
- Convenience alias.