pub struct Spectrum {Show 22 fields
pub index: u64,
pub scan_number: u64,
pub ms_level: u32,
pub rt_s: Option<f64>,
pub polarity: String,
pub centroided: bool,
pub precursor_mz: Option<f64>,
pub precursor_charge: Option<i32>,
pub scan_filter: Option<String>,
pub total_ion_current: Option<f64>,
pub native_id: Option<String>,
pub base_peak_mz: Option<f64>,
pub base_peak_intensity: Option<f64>,
pub precursor_intensity: Option<f64>,
pub isolation_window_mz: Option<[f64; 2]>,
pub activation: Option<String>,
pub collision_energy: Option<f64>,
pub inverse_reduced_mobility: Option<f64>,
pub scan_window_mz: Option<[f64; 2]>,
pub extra: BTreeMap<String, Value>,
pub mz: Vec<f64>,
pub intensity: Vec<f32>,
}Expand description
One mass spectrum.
Fields§
§index: u64Zero-based spectrum index within its run.
scan_number: u64Scan number as the instrument counts it (1-based in most formats).
ms_level: u32MS level: 1 for a full scan, 2 for a fragment (MS/MS) scan, and so on.
rt_s: Option<f64>Retention time in seconds; null when the file states none for this spectrum (never an invented 0).
polarity: Stringpositive, negative or unknown.
centroided: boolTrue when the peaks are centroids (one point per peak) rather than a sampled profile.
precursor_mz: Option<f64>m/z of the precursor ion that was isolated and fragmented (MS2 and above).
precursor_charge: Option<i32>Charge state of the precursor, when the instrument determined it.
scan_filter: Option<String>Instrument scan filter or scan description string (e.g. Thermo FTMS + p ESI Full ms).
total_ion_current: Option<f64>Sum of all intensities in the spectrum (TIC).
native_id: Option<String>The spectrum’s identifier in its file (mzML id, e.g. controllerType=0 controllerNumber=1 scan=17).
base_peak_mz: Option<f64>m/z of the most intense peak.
base_peak_intensity: Option<f64>Intensity of the most intense peak.
precursor_intensity: Option<f64>Intensity of the selected precursor ion, when recorded.
isolation_window_mz: Option<[f64; 2]>Precursor isolation window [lower, upper] in m/z.
activation: Option<String>Dissociation method: CID, HCD, ETD, ECD, ETHCD, UVPD, … (upper case).
collision_energy: Option<f64>Collision energy as recorded (usually eV, or % normalized for Thermo @hcd35.00).
inverse_reduced_mobility: Option<f64>Ion mobility of the precursor or scan, as inverse reduced mobility 1/K0 in V·s/cm².
scan_window_mz: Option<[f64; 2]>Scan (acquisition) window [lower, upper] in m/z.
extra: BTreeMap<String, Value>Format-specific scan metadata in the reader’s documented vocabulary.
mz: Vec<f64>Mass-to-charge ratios of the points, ascending.
intensity: Vec<f32>Intensity of each point (same length as mz).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Spectrum
impl<'de> Deserialize<'de> for Spectrum
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<Spectrum> for ScanHeader
impl From<Spectrum> for ScanHeader
Source§impl JsonSchema for Spectrum
impl JsonSchema for Spectrum
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for Spectrum
impl RefUnwindSafe for Spectrum
impl Send for Spectrum
impl Sync for Spectrum
impl Unpin for Spectrum
impl UnsafeUnpin for Spectrum
impl UnwindSafe for Spectrum
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more