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

Function seenContigs

MergePaths/MergeContigs.cpp:363–370  ·  view source on GitHub ↗

Finds all contigs used in each path in paths, and * marks them as seen in the vector seen. */

Source from the content-addressed store, hash-verified

361/** Finds all contigs used in each path in paths, and
362 * marks them as seen in the vector seen. */
363static void
364seenContigs(vector<bool>& seen, const ContigPaths& paths)
365{
366 for (ContigPaths::const_iterator it = paths.begin(); it != paths.end(); ++it)
367 for (ContigPath::const_iterator itc = it->begin(); itc != it->end(); ++itc)
368 if (itc->id() < seen.size())
369 seen[itc->id()] = true;
370}
371
372/** Mark contigs for removal. An empty path indicates that a contig
373 * should be removed.

Callers 1

mainFunction · 0.85

Calls 4

idMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected