Skip to main content

SourceArgs

Struct SourceArgs 

Source
pub struct SourceArgs {
Show 20 fields pub tic: bool, pub bpc: bool, pub mz: Vec<f64>, pub ppm: Option<f64>, pub da: Option<f64>, pub transitions: Vec<String>, pub transition_tol: Option<f64>, pub traces: Vec<u32>, pub channel: Option<u32>, pub sweep: Option<u32>, pub run: u32, pub ms_level: Option<u32>, pub polarity: Option<String>, pub scan_filter: Option<String>, pub precursor: Option<f64>, pub precursor_tol: Option<f64>, pub rt_range: Option<[f64; 2]>, pub mz_range: Option<[f64; 2]>, pub profile: bool, pub aggregate: Option<String>,
}
Expand description

Which chromatograms, from which scans (shared by both tools).

Fields§

§tic: bool

Total-ion chromatogram (the default for mass-spectrometry files when nothing else is chosen).

§bpc: bool

Base-peak chromatogram.

§mz: Vec<f64>

Extracted-ion chromatograms at these m/z values (one streaming pass for all).

§ppm: Option<f64>

XIC tolerance (half-width) in ppm. Default 10.

§da: Option<f64>

XIC tolerance in m/z units instead of ppm.

§transitions: Vec<String>

SRM/MRM transitions as "Q1>Q3" strings, e.g. "279.2>179.2".

§transition_tol: Option<f64>

Q1/Q3 tolerance of transitions, m/z units. Default 0.5.

§traces: Vec<u32>

Stored chromatograms or detector signals (UV/DAD, FID, TCD, stored TIC/SRM): trace indices from openreadout_info → traces[].

§channel: Option<u32>

Channel of the traces (e.g. one DAD wavelength). Default: the first signal channel.

§sweep: Option<u32>

Sweep of the traces (one spectrum of a map or series, one injection). Default 0.

§run: u32

Spectra run. Default 0.

§ms_level: Option<u32>

MS level of the scans. Default 1 (2 with precursor).

§polarity: Option<String>

positive or negative: only scans of this polarity.

§scan_filter: Option<String>

Only scans whose scan filter/description contains this text (case-insensitive).

§precursor: Option<f64>

Only MS/MS scans of this precursor m/z (product-ion XIC).

§precursor_tol: Option<f64>

Precursor tolerance, m/z units. Default 0.5.

§rt_range: Option<[f64; 2]>

Retention-time range [start, end], minutes.

§mz_range: Option<[f64; 2]>

TIC/BPC over this m/z range only, [low, high].

§profile: bool

Use profile data where scans store both profile and centroids. Default false (the instrument’s centroids).

§aggregate: Option<String>

sum (default) or max of the points inside an XIC window.

Implementations§

Source§

impl SourceArgs

Source

pub fn request(&self) -> Result<ChromRequest>

The extraction request.

Trait Implementations§

Source§

impl Debug for SourceArgs

Source§

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

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

impl Default for SourceArgs

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for SourceArgs

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 SourceArgs

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> 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.