Struct bam::record::Flag [−][src]
pub struct Flag(pub u16);Expand description
A wrapper around BAM/SAM flag.
You can check flag as record.flag().is_paired() or record.flag().0 | IS_PAIRED == 0.
You can also modify the flag as record.flag_mut().set_paired(true) or
record.flag_mut().0 |= IS_PAIRED.
Tuple Fields
0: u16Implementations
Returns true if the record fails filters, such as platform/vendor quality controls.
Returns true if the record is PCR or optical duplicate.
Modifies the record flag. This function does not do any checks.
Modifies the record flag. This function does not do any checks.
Modifies the record flag. This function does not do any checks.
Modifies the record flag. This function does not do any checks and does not modify the mate record.
Sets the record strand. Use true to set to forward strand, and false for the
reverse strand.
Sets the strand of the mate. Use true to set to forward strand, and false for the
reverse strand. This function does not do any checks and does not modify the
mate record.
Modifies the record flag. This function does not do any checks.
Use true to set the flag bit and false to unset.
Modifies the record flag. This function does not do any checks.
Use true to set the flag bit and false to unset.
Modifies the record flag. This function does not do any checks.
Use true to set the flag bit and false to unset.
Sets the record flag to fail or pass filters, such as platform/vendor quality controls.
Use true to set the flag bit and false to unset.
Sets the record as PCR or optical duplicate.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Flag
impl UnwindSafe for Flag
Blanket Implementations
Mutably borrows from an owned value. Read more
