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

Function findOverlap

PathOverlap/PathOverlap.cpp:288–301  ·  view source on GitHub ↗

Check whether path starts with the sequence [first, last). */

Source from the content-addressed store, hash-verified

286
287/** Check whether path starts with the sequence [first, last). */
288static unsigned
289findOverlap(
290 const Graph& g,
291 const Paths& paths,
292 ContigPath::const_iterator first,
293 ContigPath::const_iterator last,
294 const Vertex& v,
295 int& distance)
296{
297 if (!startsWith(paths[v.id], v.sense, first, last))
298 return 0;
299 distance = -addProp(g, first, last).length;
300 return last - first;
301}
302
303typedef vector<Overlap> Overlaps;
304

Callers 1

findOverlapsFunction · 0.70

Calls 2

addPropFunction · 0.85
startsWithFunction · 0.70

Tested by

no test coverage detected