Skip to content

Commit cc49b9f

Browse files
committed
Merge branch 'master' of github.com:marbl/MashMap
2 parents 1a405d2 + 9afc465 commit cc49b9f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/map/include/computeMap.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1638,6 +1638,12 @@ namespace skch
16381638
) / it->n_merged; // this would scale directly by the number of mappings in the chain
16391639

16401640

1641+
//Mean kmer complexity of all mappings in the chain
1642+
it->kmerComplexity = ( std::accumulate(
1643+
it, it_end, 0.0,
1644+
[](double x, MappingResult &e){ return x + e.kmerComplexity; })
1645+
) / it->n_merged; // this would scale directly by the number of mappings in the chain
1646+
16411647
//Discard other mappings of this chain
16421648
std::for_each( std::next(it), it_end, [&](MappingResult &e){ e.discard = 1; });
16431649

0 commit comments

Comments
 (0)