MCPcopy Create free account
hub / github.com/BirolLab/abyss / getOverlap

Function getOverlap

PathOverlap/PathOverlap.cpp:473–487  ·  view source on GitHub ↗

Return the number of contigs by which the two paths overlap. */

Source from the content-addressed store, hash-verified

471
472/** Return the number of contigs by which the two paths overlap. */
473static unsigned
474getOverlap(
475 const OverlapMap& pmap,
476 graph_traits<Graph>::vertex_descriptor u,
477 graph_traits<Graph>::vertex_descriptor v)
478{
479 if (isPath(u) && isPath(v)) {
480 // Both vertices are paths.
481 OverlapMap::const_iterator it = pmap.find(edge_descriptor(u, v));
482 return it == pmap.end() ? 0 : it->second;
483 } else {
484 // One of the two vertices is a contig.
485 return 0;
486 }
487}
488
489/** Merge a sequence of overlapping paths. */
490static ContigPath

Callers 2

mergePathsFunction · 0.85
operator()Method · 0.85

Calls 3

isPathFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected