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: SourceArgsWhich 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: boolAreas 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: boolLeave out the full peak tables (keep compounds, picked and manual results). Default false.
Trait Implementations§
Source§impl Debug for PeaksQuery
impl Debug for PeaksQuery
Source§impl Default for PeaksQuery
impl Default for PeaksQuery
Source§impl<'de> Deserialize<'de> for PeaksQuery
impl<'de> Deserialize<'de> for PeaksQuery
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 JsonSchema for PeaksQuery
impl JsonSchema for PeaksQuery
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 PeaksQuery
impl RefUnwindSafe for PeaksQuery
impl Send for PeaksQuery
impl Sync for PeaksQuery
impl Unpin for PeaksQuery
impl UnsafeUnpin for PeaksQuery
impl UnwindSafe for PeaksQuery
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
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