Remove the overlapping portion of the specified contig. */
| 370 | |
| 371 | /** Remove the overlapping portion of the specified contig. */ |
| 372 | static void |
| 373 | removeContigs(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. */ |
| 390 | static void |
no test coverage detected