pub struct BinnedQualityCodec;Expand description
Illumina-style 8-level quality score binning.
This is an explicitly lossy encoding that maps Phred quality scores into 8 bins, reducing entropy for better downstream compression while preserving the most important quality distinctions.
Bin boundaries and representative values:
Phred 0-1 → 0
Phred 2-9 → 6
Phred 10-19 → 15
Phred 20-24 → 22
Phred 25-29 → 27
Phred 30-34 → 33
Phred 35-39 → 37
Phred 40+ → 40Quality bytes are assumed to be Phred+33 encoded (standard Sanger/Illumina 1.8+ encoding). The binned output is also Phred+33 encoded.
Trait Implementations§
Source§impl Clone for BinnedQualityCodec
impl Clone for BinnedQualityCodec
Source§fn clone(&self) -> BinnedQualityCodec
fn clone(&self) -> BinnedQualityCodec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BinnedQualityCodec
impl Debug for BinnedQualityCodec
Source§impl Default for BinnedQualityCodec
impl Default for BinnedQualityCodec
Source§fn default() -> BinnedQualityCodec
fn default() -> BinnedQualityCodec
Returns the “default value” for a type. Read more
Source§impl QualityCodec for BinnedQualityCodec
impl QualityCodec for BinnedQualityCodec
Source§fn encode_into(quality: &[u8], output: &mut Vec<u8>) -> Result<(), DryIceError>
fn encode_into(quality: &[u8], output: &mut Vec<u8>) -> Result<(), DryIceError>
Encode raw quality score bytes, appending the encoded bytes
directly into the provided output buffer. Read more
Source§fn decode_into(
encoded: &[u8],
_original_len: usize,
output: &mut Vec<u8>,
) -> Result<(), DryIceError>
fn decode_into( encoded: &[u8], _original_len: usize, output: &mut Vec<u8>, ) -> Result<(), DryIceError>
Decode an encoded buffer, appending the decoded quality bytes
directly into the provided output buffer. Read more
Source§const IS_IDENTITY: bool = false
const IS_IDENTITY: bool = false
Whether the encoded form is identical to the raw input bytes.
impl Copy for BinnedQualityCodec
Auto Trait Implementations§
impl Freeze for BinnedQualityCodec
impl RefUnwindSafe for BinnedQualityCodec
impl Send for BinnedQualityCodec
impl Sync for BinnedQualityCodec
impl Unpin for BinnedQualityCodec
impl UnsafeUnpin for BinnedQualityCodec
impl UnwindSafe for BinnedQualityCodec
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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 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>
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