Mark contigs for removal. An empty path indicates that a contig * should be removed. */
| 373 | * should be removed. |
| 374 | */ |
| 375 | static void |
| 376 | markRemovedContigs(vector<bool>& marked, const vector<string>& pathIDs, const ContigPaths& paths) |
| 377 | { |
| 378 | for (ContigPaths::const_iterator it = paths.begin(); it != paths.end(); ++it) { |
| 379 | if (it->empty()) { |
| 380 | size_t i = get(g_contigNames, pathIDs[it - paths.begin()]); |
| 381 | assert(i < marked.size()); |
| 382 | marked[i] = true; |
| 383 | } |
| 384 | } |
| 385 | } |
| 386 | |
| 387 | /** Output the updated overlap graph. */ |
| 388 | static void |