Skip to main content

PeaksQuery

Struct PeaksQuery 

Source
pub struct PeaksQuery {
Show 14 fields pub source: SourceArgs, pub smooth: Option<u32>, pub min_snr: Option<f64>, pub min_height: Option<f64>, pub min_width: Option<f64>, pub baseline: Option<String>, pub area_seconds: bool, pub rt: Option<f64>, pub window: Option<f64>, pub pick: Option<String>, pub integrate: Vec<[f64; 2]>, pub x_range: Vec<[f64; 2]>, pub compounds: Vec<Compound>, pub summary_only: bool,
}
Expand description

An analyze peaks query.

Fields§

§source: SourceArgs

Which chromatograms (default: the first detector trace, else the TIC).

§smooth: Option<u32>

Savitzky–Golay window in points (below 5: none). Default automatic.

§min_snr: Option<f64>

Detection threshold, height / noise σ. Default 3.

§min_height: Option<f64>

Detection threshold in signal units.

§min_width: Option<f64>

Smallest width at half height, minutes.

§baseline: Option<String>

Baseline under detected peaks: auto (default), drop, valley or tangent; or the baseline under x_range windows and manual integrations: linear (default: a straight line between the window’s ends) or none (area of the signal itself).

§area_seconds: bool

Areas in signal × seconds instead of signal × minutes. Default false.

§rt: Option<f64>

Expected retention time (minutes): also report the peak there as picked.

§window: Option<f64>

Half-width of the rt window (and of compounds without one), minutes. Default 0.5.

§pick: Option<String>

largest (default) or nearest peak in the window.

§integrate: Vec<[f64; 2]>

Manual integrations [[start, end], ...] in minutes.

§x_range: Vec<[f64; 2]>

Axis windows [[a, b], ...] to integrate, in the axis’s own units (either order): on a spectrum (IR/Raman cm⁻¹, UV nm, NMR ppm) each is a region under spectra[].regions (area with the baseline, area without it, maximum, centroid, the bands inside); on a chromatogram a manual integration in minutes.

§compounds: Vec<Compound>

Targeted compounds: [{name, mz? | q1+q3? | trace?, rt?, window?, ppm?, polarity?, ms_level?, precursor?}]; one result row each under compounds.

§summary_only: bool

Leave out the full peak tables (keep compounds, picked and manual results). Default false.

Trait Implementations§

Source§

impl Debug for PeaksQuery

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PeaksQuery

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for PeaksQuery

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl JsonSchema for PeaksQuery

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
Source§

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn inline_schema() -> bool

Whether JSON Schemas generated for this type should be included directly in parent schemas, rather than being re-used where possible using the $ref keyword. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.