Remove ambiguous contigs from the ends of the path. */
| 360 | |
| 361 | /** Remove ambiguous contigs from the ends of the path. */ |
| 362 | static void |
| 363 | removeAmbiguousContigs(ContigPath& path) |
| 364 | { |
| 365 | if (!path.empty() && path.back().ambiguous()) |
| 366 | path.erase(path.end() - 1); |
| 367 | if (!path.empty() && path.front().ambiguous()) |
| 368 | path.erase(path.begin()); |
| 369 | } |
| 370 | |
| 371 | /** Remove the overlapping portion of the specified contig. */ |
| 372 | static void |