Struct debruijn::dna_string::DnaStringSlice [−][src]
pub struct DnaStringSlice<'a> {
pub dna_string: &'a DnaString,
pub start: usize,
pub length: usize,
pub is_rc: bool,
}
Expand description
An immutable slice into a DnaString
Fields
dna_string: &'a DnaString
start: usize
length: usize
is_rc: bool
Implementations
Get slice containing the interval [start
, end
) of self
Compute the Hamming distance between this DNA string and another
Trait Implementations
Set nbases
positions in the sequence, starting at pos
.
Values must be packed into the upper-most bits of value
. Read more
Return a new object containing the reverse complement of the sequence
Iterate over the bases in the sequence
Create a Vmer from a sequence of bytes
Get the first Kmer from the sequence
Get the terminal kmer of the sequence, on the both side of the sequence
Get the terminal kmer of the sequence, on the side of the sequence given by dir
Iterate over the kmers in the sequence
fn iter_kmer_exts<K: Kmer>(&self, seq_exts: Exts) -> KmerExtsIter<'_, K, Self>ⓘNotable traits for KmerExtsIter<'a, K, D>impl<'a, K: Kmer, D: Mer> Iterator for KmerExtsIter<'a, K, D> type Item = (K, Exts);
fn iter_kmer_exts<K: Kmer>(&self, seq_exts: Exts) -> KmerExtsIter<'_, K, Self>ⓘNotable traits for KmerExtsIter<'a, K, D>impl<'a, K: Kmer, D: Mer> Iterator for KmerExtsIter<'a, K, D> type Item = (K, Exts);
impl<'a, K: Kmer, D: Mer> Iterator for KmerExtsIter<'a, K, D> type Item = (K, Exts);
Iterate over the kmers and their extensions, given the extensions of the whole sequence
Auto Trait Implementations
impl<'a> RefUnwindSafe for DnaStringSlice<'a>
impl<'a> Send for DnaStringSlice<'a>
impl<'a> Sync for DnaStringSlice<'a>
impl<'a> Unpin for DnaStringSlice<'a>
impl<'a> UnwindSafe for DnaStringSlice<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more