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

Function updateStats

RResolver/RAlgorithmsShort.cpp:647–676  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645}
646
647static void
648updateStats(
649 Resolution& resolution,
650 std::vector<Support>& supports,
651 const SupportMap& repeatSupportMap,
652 bool inHistSample)
653{
654 for (const auto& intigIdxAndOutigsSupp : repeatSupportMap) {
655 for (const auto& outigIdxAndSupp : intigIdxAndOutigsSupp.second) {
656 const auto& support = outigIdxAndSupp.second;
657
658 supports.push_back(support);
659
660 if (!support.unknown()) {
661 assert(support.found >= 0);
662 assert(support.tests >= 0);
663 if (inHistSample) {
664 resolution.findsHistogram.insert(support.found);
665 resolution.fractionFindsHistogram.insert(
666 double(support.found) / double(support.tests));
667 }
668 }
669
670 assert(support.calculatedTests >= 0);
671 if (inHistSample) {
672 resolution.calculatedTestsHistogram.insert(support.calculatedTests);
673 }
674 }
675 }
676}
677
678static bool
679isSmallRepeat(const ContigNode& node)

Callers 1

resolveRepeatsFunction · 0.85

Calls 3

unknownMethod · 0.80
push_backMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected