Package kmer.core.array
Class AtomicIntegerArrayKMerCount
java.lang.Object
kmer.core.array.AtomicIntegerArrayKMerCount
A
KMerCount implementation that wraps an AtomicIntegerArray.- Author:
- Dennis Cosgrove (http://www.cse.wustl.edu/~cosgroved/)
-
Constructor Summary
ConstructorsConstructorDescriptionAtomicIntegerArrayKMerCount(int k, AtomicIntegerArray atomicIntegerArray)Constructs an AtomicIntegerArrayKmerCount that wraps the given AtomicIntegerArray. -
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
-
AtomicIntegerArrayKMerCount
Constructs an AtomicIntegerArrayKmerCount that wraps the given AtomicIntegerArray.- Parameters:
k- the length of the k-mers to countatomicIntegerArray- the AtomicIntegerArray 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
-