Skip to content

Commit

Permalink
using cutOffValue parameter in graph correction
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdiheydari committed Feb 19, 2016
1 parent ded84f2 commit d975478
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/brownie.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,11 @@ void Brownie::parameterEstimationInStage4(DBGraph &graph){
double estimatedErroneousKmerCoverage=1+estimatedKmerCoverage/100;
double e=2.718281;
double c=estimatedErroneousKmerCoverage/estimatedKmerCoverage;
cutOffvalue =(estimatedErroneousKmerCoverage-estimatedKmerCoverage)* (log(e)/log(c));

if (settings.getCutOffValue()>0)
cutOffvalue=settings.getCutOffValue();
else
cutOffvalue =(estimatedErroneousKmerCoverage-estimatedKmerCoverage)* (log(e)/log(c));
testgraph.updateGraphSize();
testgraph.clear();
//initialize values for graph parameter based on test graph.
Expand Down

0 comments on commit d975478

Please sign in to comment.