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

Function findShortContigs

FilterGraph/FilterGraph.cc:403–415  ·  view source on GitHub ↗

Finds all potentially removable contigs in the graph. */

Source from the content-addressed store, hash-verified

401
402/** Finds all potentially removable contigs in the graph. */
403static void
404findShortContigs(const Graph& g, const vector<bool>& seen, vector<vertex_descriptor>& sc)
405{
406 typedef graph_traits<Graph> GTraits;
407 typedef GTraits::vertex_iterator Vit;
408 Vit first, second;
409 tie(first, second) = vertices(g);
410 ::copy_if(
411 first,
412 second,
413 back_inserter(sc),
414 !boost::lambda::bind(Marked(g, seen), _1) && boost::lambda::bind(removable, &g, _1));
415}
416
417/** Functor used for sorting contigs based on degree, then size,
418 * and then ID. */

Callers 1

removeShimsFunction · 0.85

Calls 3

copy_ifFunction · 0.85
MarkedClass · 0.85
verticesFunction · 0.50

Tested by

no test coverage detected