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

Function coverageHistogram

Assembly/CoverageAlgorithm.h:12–25  ·  view source on GitHub ↗

Return the k-mer coverage histogram. */

Source from the content-addressed store, hash-verified

10
11/** Return the k-mer coverage histogram. */
12static inline
13Histogram coverageHistogram(const SequenceCollectionHash& c)
14{
15 typedef SequenceCollectionHash Graph;
16
17 Histogram h;
18 for (Graph::const_iterator it = c.begin();
19 it != c.end(); ++it) {
20 if (it->second.deleted())
21 continue;
22 h.insert(it->second.getMultiplicity());
23 }
24 return h;
25}
26
27/** Calculate a k-mer coverage threshold from the given k-mer coverage
28 * histogram. */

Callers 3

runMethod · 0.85
runControlMethod · 0.85
assembleFunction · 0.85

Calls 5

deletedMethod · 0.80
getMultiplicityMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected