Package kmer.core.array
Class IntArrayKMerCount
java.lang.Object
kmer.core.array.IntArrayKMerCount
A
KMerCount implementation that wraps an int array.- Author:
- Dennis Cosgrove (http://www.cse.wustl.edu/~cosgroved/)
-
Constructor Summary
ConstructorsConstructorDescriptionIntArrayKMerCount(int k, int[] array)Constructs an IntArrayKMerCount that wrap the given int array. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
IntArrayKMerCount
public IntArrayKMerCount(int k, int[] array)Constructs an IntArrayKMerCount that wrap the given int array.- Parameters:
k- the length of the k-mers to countarray- the array to wrap
-
-
Method Details
-
getCount
public int getCount(byte[] kMer)Description copied from interface:KMerCountGets the number of times the given k-mer appeared in the corresponding chromosome. -
iterator
-