Skip to content

Commit

Permalink
Cleanup comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jts committed Mar 12, 2013
1 parent ddee4c7 commit ed45ad6
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions src/StringGraph/SGVisitors.cpp
Expand Up @@ -67,8 +67,6 @@ bool SGTransitiveReductionVisitor::visit(StringGraph* /*pGraph*/, Vertex* pVerte
Edge* pVWEdge = edges[i]; Edge* pVWEdge = edges[i];
Vertex* pWVert = pVWEdge->getEnd(); Vertex* pWVert = pVWEdge->getEnd();


//std::cout << "Examining edges from " << pWVert->getID() << " longest: " << longestLen << "\n";
//std::cout << pWVert->getID() << " w_edges: \n";
EdgeDir transDir = !pVWEdge->getTwinDir(); EdgeDir transDir = !pVWEdge->getTwinDir();
if(pWVert->getColor() == GC_GRAY) if(pWVert->getColor() == GC_GRAY)
{ {
Expand All @@ -83,7 +81,6 @@ bool SGTransitiveReductionVisitor::visit(StringGraph* /*pGraph*/, Vertex* pVerte
{ {
// X is the endpoint of an edge of V, therefore it is transitive // X is the endpoint of an edge of V, therefore it is transitive
pWXEdge->getEnd()->setColor(GC_BLACK); pWXEdge->getEnd()->setColor(GC_BLACK);
//std::cout << "Marking " << pWXEdge->getEndID() << " as transitive to " << pVertex->getID() << "\n";
} }
} }
else else
Expand All @@ -98,13 +95,10 @@ bool SGTransitiveReductionVisitor::visit(StringGraph* /*pGraph*/, Vertex* pVerte
Edge* pVWEdge = edges[i]; Edge* pVWEdge = edges[i];
Vertex* pWVert = pVWEdge->getEnd(); Vertex* pWVert = pVWEdge->getEnd();


//std::cout << "Examining edges from " << pWVert->getID() << " longest: " << longestLen << "\n";
//std::cout << pWVert->getID() << " w_edges: \n";
EdgeDir transDir = !pVWEdge->getTwinDir(); EdgeDir transDir = !pVWEdge->getTwinDir();
EdgePtrVec w_edges = pWVert->getEdges(transDir); EdgePtrVec w_edges = pWVert->getEdges(transDir);
for(size_t j = 0; j < w_edges.size(); ++j) for(size_t j = 0; j < w_edges.size(); ++j)
{ {
//std::cout << " edge: " << *w_edges[j] << "\n";
Edge* pWXEdge = w_edges[j]; Edge* pWXEdge = w_edges[j];
size_t len = pWXEdge->getSeqLen(); size_t len = pWXEdge->getSeqLen();


Expand All @@ -114,8 +108,6 @@ bool SGTransitiveReductionVisitor::visit(StringGraph* /*pGraph*/, Vertex* pVerte
{ {
// X is the endpoint of an edge of V, therefore it is transitive // X is the endpoint of an edge of V, therefore it is transitive
pWXEdge->getEnd()->setColor(GC_BLACK); pWXEdge->getEnd()->setColor(GC_BLACK);
//std::cout << "Marking " << pWXEdge->getEndID() << " as transitive to " << pVertex->getID() << " in stage 2";
//std::cout << " via " << pWVert->getID() << "\n";
} }
} }
else else
Expand Down Expand Up @@ -335,14 +327,6 @@ bool SGTrimVisitor::visit(StringGraph* /*pGraph*/, Vertex* pVertex)
} }
} }


/*
if(isTrimmed)
{
std::stringstream ss;
ss << pVertex->getID() << "-trimmed";
writeFastaRecord(&m_tmpFile, ss.str(), pVertex->getSeq().toString());
}
*/
return false; return false;
} }


Expand Down Expand Up @@ -447,12 +431,6 @@ bool SGSmallRepeatResolveVisitor::visit(StringGraph* /*pGraph*/, Vertex* pX)


if(x_diff > m_minDiff && y_diff > m_minDiff) if(x_diff > m_minDiff && y_diff > m_minDiff)
{ {
/*
printf("Edge %s -> %s is likely a repeat\n", pX->getID().c_str(), pY->getID().c_str());
printf("Actual overlap lengths: %zu and %zu\n", xy_len, yx_len);
printf("Spanned by longer edges of size: %zu and %zu\n", x_longest_len, y_longest_len);
printf("Differences: %d and %d\n", x_diff, y_diff);
*/
pX->deleteEdge(pXY); pX->deleteEdge(pXY);
pY->deleteEdge(pYX); pY->deleteEdge(pYX);
changed = true; changed = true;
Expand Down Expand Up @@ -726,14 +704,6 @@ bool SGSmoothingVisitor::visit(StringGraph* pGraph, Vertex* pVertex)
cigarSS << cigarOp; cigarSS << cigarOp;
} }
cigarStrings[i] = cigarSS.str(); cigarStrings[i] = cigarSS.str();

/*
printf("1: %s\n", aln_global->out1);
printf("M: %s\n", aln_global->outm);
printf("2: %s\n", aln_global->out2);
printf("CIGAR: %s\n", cigarStrings[i].c_str());
*/

aln_free_AlnAln(aln_global); aln_free_AlnAln(aln_global);
} }


Expand All @@ -752,8 +722,6 @@ bool SGSmoothingVisitor::visit(StringGraph* pGraph, Vertex* pVertex)
gapPercent[i] = percentGap; gapPercent[i] = percentGap;
totalPercent[i] = percentDiff; totalPercent[i] = percentDiff;
maxIndel[i] = maxGapLength; maxIndel[i] = maxGapLength;

//printf("ml: %d tmm: %d pd: %lf pg: %lf\n", matchLen, totalDiff, percentDiff, percentGap);
} }


if(bIsDegenerate || bFailGapCheck || bFailDivergenceCheck || bFailIndelSizeCheck) if(bIsDegenerate || bFailGapCheck || bFailDivergenceCheck || bFailIndelSizeCheck)
Expand Down

0 comments on commit ed45ad6

Please sign in to comment.