Commit 7f60e487 authored by Mikaël Salson's avatar Mikaël Salson
Browse files

kmerstore: getIndexLoad using k

Go back to the previous computation. Don't use kmer.getLength() to compute
the index load since it is not properly set with the UNKNOWN or NOT_UNKNOWN
parent 229c41bd
......@@ -339,7 +339,7 @@ void IKmerStore<T>::finish_building() {
template<class T>
float IKmerStore<T>::getIndexLoad(const T kmer) const {
float index_load = nb_kmers_inserted / pow(4.0, kmer.getLength());
float index_load = nb_kmers_inserted / pow(4.0, k);
return (kmer.isUnknown()) ? 1 - index_load : index_load;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment