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

Function removeContigs

PathOverlap/PathOverlap.cpp:372–387  ·  view source on GitHub ↗

Remove the overlapping portion of the specified contig. */

Source from the content-addressed store, hash-verified

370
371/** Remove the overlapping portion of the specified contig. */
372static void
373removeContigs(ContigPath& path, unsigned first, unsigned last)
374{
375 assert(first <= path.size());
376 assert(last <= path.size());
377 if (first < last) {
378 recordTrimmedContigs(path.begin(), path.begin() + first);
379 recordTrimmedContigs(path.begin() + last, path.end());
380 path.erase(path.begin() + last, path.end());
381 path.erase(path.begin(), path.begin() + first);
382 } else {
383 recordTrimmedContigs(path.begin(), path.end());
384 path.clear();
385 }
386 removeAmbiguousContigs(path);
387}
388
389/** Find the largest overlap for each contig and remove it. */
390static void

Callers 1

trimOverlapsFunction · 0.70

Calls 7

recordTrimmedContigsFunction · 0.85
removeAmbiguousContigsFunction · 0.85
eraseMethod · 0.80
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected