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

Function removeMarked

Assembly/AssemblyAlgorithms.h:115–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113 */
114template <typename Graph>
115size_t removeMarked(Graph* pSC)
116{
117 typedef typename Graph::iterator iterator;
118
119 Timer timer(__func__);
120 size_t count = 0;
121 for (iterator it = pSC->begin(); it != pSC->end(); ++it) {
122 if (it->second.deleted())
123 continue;
124 if (it->second.marked()) {
125 removeSequenceAndExtensions(pSC, *it);
126 count++;
127 }
128 pSC->pumpNetwork();
129 }
130 if (count > 0)
131 logger(1) << "Removed " << count << " marked k-mer.\n";
132 return count;
133}
134
135} // namespace AssemblyAlgorithms
136

Callers 3

runMethod · 0.85
controlRemoveMarkedMethod · 0.85
trimSequencesFunction · 0.85

Calls 6

deletedMethod · 0.80
markedMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
pumpNetworkMethod · 0.45

Tested by

no test coverage detected