Enum noodles::bam::record::sequence::Base [−][src]
pub enum Base {
Show 16 variants
Eq,
A,
C,
M,
G,
R,
S,
V,
T,
W,
Y,
H,
K,
D,
B,
N,
}
Expand description
A BAM record sequence base.
Variants
Equal to the reference base.
Adenine.
Cytosine.
Amino.
Guanine.
Purine.
Strong.
Not T.
Thymine.
Weak.
Pyrimidine.
Not G.
Keto.
Not C.
Not A.
Any base.
Implementations
Returns the complement of this base.
See https://en.wikipedia.org/wiki/Nucleic_acid_notation#IUPAC_notation.
Examples
use noodles_bam::record::sequence::Base;
assert_eq!(Base::A.complement(), Base::T);
assert_eq!(Base::C.complement(), Base::G);
assert_eq!(Base::G.complement(), Base::C);
assert_eq!(Base::T.complement(), Base::A);
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Base
impl UnwindSafe for Base
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.