Trait debruijn::Mer[][src]

pub trait Mer: Sized + Debug {
    fn len(&self) -> usize;
fn get(&self, pos: usize) -> u8;
fn set_mut(&mut self, pos: usize, val: u8);
fn set_slice_mut(&mut self, pos: usize, nbases: usize, value: u64);
fn rc(&self) -> Self; fn iter<'a>(&'a self) -> MerIter<'a, Self>
Notable traits for MerIter<'a, M>
impl<'a, M: 'a + Mer> Iterator for MerIter<'a, M> type Item = u8;
{ ... }
fn at_count(&self) -> u32 { ... }
fn gc_count(&self) -> u32 { ... } }
Expand description

Trait for interacting with DNA sequences

Required methods

Length of DNA sequence

Get 2-bit encoded base at position pos

Set base at pos to 2-bit encoded base val

Set nbases positions in the sequence, starting at pos. Values must be packed into the upper-most bits of value.

Return a new object containing the reverse complement of the sequence

Provided methods

Iterate over the bases in the sequence

Count the number of A/T bases in the kmer

Count the number of G/C bases in the kmer

Implementors