[−][src]Trait debruijn::filter::KmerSummarizer
Implement this trait to control how multiple observations of a kmer are carried forward into a DeBruijn graph.
Required methods
fn summarize<K, F: Iterator<Item = (K, Exts, DI)>>(
&self,
items: F
) -> (bool, Exts, DO)
&self,
items: F
) -> (bool, Exts, DO)
The input items
is an iterator over kmer observations. Input observation
is a tuple of (kmer, extensions, data). The summarize function inspects the
data and returns a tuple indicating:
- whether this kmer passes the filtering criteria (e.g. is there a sufficient number of observation)
- the accumulated Exts of the kmer
- a summary data object of type
DO
that will be used as a color annotation in the DeBruijn graph.
Implementors
impl<D> KmerSummarizer<D, u16> for CountFilter
[src]
impl<D: Eq + Ord + Hash + Send + Sync + Debug + Clone> KmerSummarizer<D, u32> for CountFilterEqClass<D>
[src]
fn summarize<K, F: Iterator<Item = (K, Exts, D)>>(
&self,
items: F
) -> (bool, Exts, EqClassIdType)
[src]
&self,
items: F
) -> (bool, Exts, EqClassIdType)