pub enum TransformType {
Linear,
Arcsinh {
cofactor: f32,
},
Biexponential {
top_of_scale: f32,
positive_decades: f32,
negative_decades: f32,
width: f32,
},
}Expand description
Transformation type to apply to flow cytometry parameter data
Transformations are used to convert raw instrument values into display-friendly scales. The most common transformation for fluorescence data is arcsinh (inverse hyperbolic sine), which provides a log-like scale that handles both positive and negative values.
Variants§
Linear
Linear transformation (no scaling, identity function) Used for scatter parameters (FSC, SSC) and time
Arcsinh
Arcsinh (inverse hyperbolic sine) transformation with configurable cofactor
Formula: arcsinh(x / cofactor)
Common cofactors: 150-200 for modern instruments
Biexponential
Biexponential (logicle) transformation matching FlowJo’s default behavior
Formula: asinh(x * sinh(M * ln(10)) / T) + A * ln(10)
where T = top of scale, M = positive decades, A = negative decades
Defaults match FlowJo: T=262144 (18-bit), M=4.5, A=0, W=0.5
Implementations§
Source§impl TransformType
impl TransformType
Sourcepub fn create_from_str(s: Option<&str>) -> Self
pub fn create_from_str(s: Option<&str>) -> Self
Create a TransformType from a string. If no string is provided or the string is not matched, the default arcsinh transform is used.
Trait Implementations§
Source§impl Clone for TransformType
impl Clone for TransformType
Source§fn clone(&self) -> TransformType
fn clone(&self) -> TransformType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TransformType
impl Debug for TransformType
Source§impl Default for TransformType
impl Default for TransformType
Source§impl<'de> Deserialize<'de> for TransformType
impl<'de> Deserialize<'de> for TransformType
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 Formattable for TransformType
impl Formattable for TransformType
Source§impl Hash for TransformType
impl Hash for TransformType
Source§impl PartialEq for TransformType
impl PartialEq for TransformType
Source§impl Serialize for TransformType
impl Serialize for TransformType
Source§impl Transformable for TransformType
impl Transformable for TransformType
impl StructuralPartialEq for TransformType
Auto Trait Implementations§
impl Freeze for TransformType
impl RefUnwindSafe for TransformType
impl Send for TransformType
impl Sync for TransformType
impl Unpin for TransformType
impl UnsafeUnpin for TransformType
impl UnwindSafe for TransformType
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,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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