Skip to content

Commit

Permalink
Turned on overlap ratio resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
jts committed Jan 14, 2013
1 parent 653ce21 commit 2dc5e59
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/Algorithm/ErrorCorrectProcess.cpp
Expand Up @@ -41,8 +41,7 @@ ErrorCorrectResult ErrorCorrectProcess::process(const SequenceWorkItem& workItem

ErrorCorrectResult ErrorCorrectProcess::correct(const SequenceWorkItem& workItem)
{
/*
ErrorCorrectResult iresult = fmiCorrect(workItem, 31);
ErrorCorrectResult iresult = fmiCorrect(workItem, 25);
if(!iresult.kmerQC)
{
//std::cout << "KMER\n";
Expand All @@ -53,7 +52,7 @@ ErrorCorrectResult ErrorCorrectProcess::correct(const SequenceWorkItem& workItem
//std::cout << "FMI\n";
return iresult;
}
*/

switch(m_params.algorithm)
{
case ECA_HYBRID:
Expand Down
2 changes: 2 additions & 0 deletions src/Algorithm/ErrorCorrectProcess.h
Expand Up @@ -19,6 +19,7 @@
#include "BWTIndexSet.h"
#include "SampledSuffixArray.h"
#include "multiple_alignment.h"
#include "BloomFilter.h"

enum ErrorCorrectAlgorithm
{
Expand All @@ -44,6 +45,7 @@ struct ErrorCorrectParameters
//
const OverlapAlgorithm* pOverlapper;
BWTIndexSet indices;
BloomFilter* pBloomFilter;
bool trim;

// Overlap-based corrector params
Expand Down
7 changes: 6 additions & 1 deletion src/SGA/assemble.cpp
Expand Up @@ -224,7 +224,12 @@ void assemble()
pGraph->visit(smoothingVisit);
pGraph->simplify();
}


// Resolve repeats by overlap length
SGOverlapRatioVisitor ratioVisit(0.7);
pGraph->visit(ratioVisit);
pGraph->simplify();

pGraph->renameVertices("contig-");

std::cout << "\n[Stats] Final graph:\n";
Expand Down

0 comments on commit 2dc5e59

Please sign in to comment.