Module mzdata::spectrum::spectrum[][src]

Expand description

Represent the collection of attributes and data that compose a single mass spectrum.

Because a mass spectrum may be obtained from sources with varying levels of detail, several alternative structures are provided with a common set of trait-based methods to unify access:

  1. RawSpectrum for representing a spectrum that has not been decoded into distinct peaks yet, but whose data may be continuous or discrete.
  2. CentroidSpectrum for representing spectra from sources which are guaranteed to be pre-centroided, like those from MGF files or other simple text representations.
  3. Spectrum for representing a multi-layer representation of a spectrum where both raw data and a distinct peak list are available.

These structures all implement the SpectrumBehavior trait

Structs

Represents a spectrum that has been centroided

Represents a spectrum that hasn’t been processed yet, with only data arrays, potentially no discrete peaks.

Represent a spectrum with multiple layers of representation of the peak data.

Enums

An variant for dispatching to different strategies of computing common statistics of different levels of peak data.

Traits

A trait for providing a uniform delegated access to spectrum metadata