pub struct _Condition {
pub name: String,
pub control: bool,
pub min_chunks: u8,
pub max_chunks: u8,
pub targets: Targets,
pub single_off: Action,
pub single_on: Action,
pub multi_off: Action,
pub multi_on: Action,
pub no_map: Action,
pub no_seq: Action,
}Expand description
The _Condition struct holds the settings lifted from the TOML file, for each region of the flowcell or barcode.
Fields§
§name: StringThe name of the Condition (Barcode/Region).
control: boolIs this Region/Barcode a control region / Barcode
min_chunks: u8The minimum number of read chunks that have to be captured for a read to be processed. Default if not met is to proceed.
max_chunks: u8The maximum number of read chunks that can be captured for a read. Default if exceed is to unblock.
targets: TargetsThe targets associated with the Condition.
single_off: ActionThe action to perform when an alignment returns one single primary mapping, outside of any target regions.
single_on: ActionThe action to perform when an alignment returns one single primary mapping, inside of a target regions.
multi_off: ActionThe action to perform when an alignment returns multiple primary mappings, all outside of any target regions.
multi_on: ActionThe action to perform when an alignment returns multiple primary mappings, at LEAST ONE of which is inside of a target region.
no_map: ActionThe action to perform when no alignments are returned for this read.
no_seq: ActionThe action to perform when no sequence is produced for this read sequence.
Implementations§
Source§impl _Condition
impl _Condition
Sourcepub fn is_control(&self) -> bool
pub fn is_control(&self) -> bool
Getter for the control field
Sourcepub fn set_control(&mut self, control: bool)
pub fn set_control(&mut self, control: bool)
Setter for the control field
Sourcepub fn get_min_chunks(&self) -> u8
pub fn get_min_chunks(&self) -> u8
Getter for the min_chunks field
Sourcepub fn set_min_chunks(&mut self, min_chunks: u8)
pub fn set_min_chunks(&mut self, min_chunks: u8)
Setter for the min_chunks field
Sourcepub fn get_max_chunks(&self) -> u8
pub fn get_max_chunks(&self) -> u8
Getter for the max_chunks field
Sourcepub fn set_max_chunks(&mut self, max_chunks: u8)
pub fn set_max_chunks(&mut self, max_chunks: u8)
Setter for the max_chunks field
Sourcepub fn get_targets(&self) -> &Targets
pub fn get_targets(&self) -> &Targets
Getter for the targets field
Sourcepub fn set_targets(&mut self, targets: Targets)
pub fn set_targets(&mut self, targets: Targets)
Setter for the targets field
Sourcepub fn get_single_off(&self) -> &Action
pub fn get_single_off(&self) -> &Action
Getter and Setter for the single_off field
Sourcepub fn set_single_off(&mut self, single_off: Action)
pub fn set_single_off(&mut self, single_off: Action)
Set the Action to take when a single primary mapping is found outside of any target regions.
Sourcepub fn get_single_on(&self) -> &Action
pub fn get_single_on(&self) -> &Action
Getter and Setter for the single_on field
Sourcepub fn set_single_on(&mut self, single_on: Action)
pub fn set_single_on(&mut self, single_on: Action)
Set the Action to take when a single primary mapping is found on of any target regions.
Sourcepub fn get_multi_off(&self) -> &Action
pub fn get_multi_off(&self) -> &Action
Getter and Setter for the multi_off field
Sourcepub fn set_multi_off(&mut self, multi_off: Action)
pub fn set_multi_off(&mut self, multi_off: Action)
Getter and Setter for the multi_off field
Sourcepub fn get_multi_on(&self) -> &Action
pub fn get_multi_on(&self) -> &Action
Getter and Setter for the multi_on field
Sourcepub fn set_multi_on(&mut self, multi_on: Action)
pub fn set_multi_on(&mut self, multi_on: Action)
Getter and Setter for the multi_off field
Sourcepub fn get_no_map(&self) -> &Action
pub fn get_no_map(&self) -> &Action
Getter and Setter for the no_map field
Sourcepub fn set_no_map(&mut self, no_map: Action)
pub fn set_no_map(&mut self, no_map: Action)
Getter and Setter for the multi_off field
Sourcepub fn get_no_seq(&self) -> &Action
pub fn get_no_seq(&self) -> &Action
Getter and Setter for the no_seq field
Sourcepub fn set_no_seq(&mut self, no_seq: Action)
pub fn set_no_seq(&mut self, no_seq: Action)
Getter and Setter for the multi_off field
Trait Implementations§
Source§impl Debug for _Condition
impl Debug for _Condition
Source§impl PartialEq for _Condition
impl PartialEq for _Condition
impl StructuralPartialEq for _Condition
Auto Trait Implementations§
impl Freeze for _Condition
impl RefUnwindSafe for _Condition
impl Send for _Condition
impl Sync for _Condition
impl Unpin for _Condition
impl UnwindSafe for _Condition
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> 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