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

Function applyKmerCoverageThreshold

Assembly/CoverageAlgorithm.h:116–129  ·  view source on GitHub ↗

Remove all k-mers with multiplicity lower than the given threshold */

Source from the content-addressed store, hash-verified

114
115/** Remove all k-mers with multiplicity lower than the given threshold */
116static inline
117size_t applyKmerCoverageThreshold(SequenceCollectionHash& c, unsigned kc)
118{
119 if (kc == 0)
120 return 0;
121
122 for (SequenceCollectionHash::iterator it = c.begin();
123 it != c.end(); ++it) {
124 if (it->second.getMultiplicity() < kc)
125 it->second.setFlag(SF_DELETE);
126 }
127
128 return c.cleanup();
129}
130
131} // namespace AssemblyAlgorithms
132

Callers 3

runMethod · 0.85
runControlMethod · 0.85
assembleFunction · 0.85

Calls 5

getMultiplicityMethod · 0.80
cleanupMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
setFlagMethod · 0.45

Tested by

no test coverage detected