pub struct PhredEncoding {
pub name: &'static str,
pub offset: u8,
}Expand description
Phred quality encoding detection.
Replicates the logic from Sequence/QualityEncoding/PhredEncoding.java.
Fields§
§name: &'static str§offset: u8Implementations§
Source§impl PhredEncoding
impl PhredEncoding
Sourcepub const SANGER: PhredEncoding
pub const SANGER: PhredEncoding
The Sanger / Illumina 1.9 (Phred+33) encoding.
This is the encoding produced by construction for BAM/SAM input: BAM stores raw Phred values which the reader converts to ASCII by adding 33, and SAM quality strings are Phred+33 by specification.
Source§impl PhredEncoding
impl PhredEncoding
Sourcepub const PHRED64: PhredEncoding
pub const PHRED64: PhredEncoding
Marker for --phred64: tells resolve to read the quality as
Phred+64, naming Illumina 1.3 vs 1.5 from the lowest character.
Trait Implementations§
Source§impl Clone for PhredEncoding
impl Clone for PhredEncoding
impl Copy for PhredEncoding
Auto Trait Implementations§
impl Freeze for PhredEncoding
impl RefUnwindSafe for PhredEncoding
impl Send for PhredEncoding
impl Sync for PhredEncoding
impl Unpin for PhredEncoding
impl UnsafeUnpin for PhredEncoding
impl UnwindSafe for PhredEncoding
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.