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

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
affectations.
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;
}
......
Markdown is supported
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