Package kmer.core.map

Class MapKMerCount<T>

java.lang.Object
kmer.core.map.MapKMerCount<T>
All Implemented Interfaces:
Iterable<byte[]>, KMerCount
Direct Known Subclasses:
ByteArrayRangeMapKMerCount, IntegerMapKMerCount, LongMapKMerCount, StringMapKMerCount

public class MapKMerCount<T> extends Object implements KMerCount
Author:
Dennis Cosgrove (http://www.cse.wustl.edu/~cosgroved/)
  • Constructor Details

  • Method Details

    • getCount

      public int getCount​(byte[] kMer)
      Description copied from interface: KMerCount
      Gets the number of times the given k-mer appeared in the corresponding chromosome.
      Specified by:
      getCount in interface KMerCount
      Parameters:
      kMer - the k-mer to look for
      Returns:
      the number of times this k-mer was counted
    • iterator

      public Iterator<byte[]> iterator()
      Specified by:
      iterator in interface Iterable<T>