Skip to content

Commit

Permalink
use expected genome length for sketch length with bloom filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Ondov committed Nov 7, 2015
1 parent 6aad387 commit 9dc52dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mash/Sketch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ int Sketch::initFromSequence(const vector<string> & files, const Parameters & pa

if ( parameters.bloomFilter )
{
references[references.size() - 1].length = parameters.genomeSize;
bloom_parameters bloomParams;

bloomParams.projected_element_count = (uint64_t)parameters.genomeSize * 10l; // TODO: error rate based on platform and coverage
Expand Down Expand Up @@ -334,7 +335,7 @@ int Sketch::initFromSequence(const vector<string> & files, const Parameters & pa

reference.length = l;
}
else
else if ( ! parameters.bloomFilter )
{
references[references.size() - 1].length += l;

Expand Down

0 comments on commit 9dc52dd

Please sign in to comment.