diff --git a/assembler/src/common/modules/alignment/pacbio/pac_index.hpp b/assembler/src/common/modules/alignment/pacbio/pac_index.hpp index 4eaadc4d0..974f1a7fd 100644 --- a/assembler/src/common/modules/alignment/pacbio/pac_index.hpp +++ b/assembler/src/common/modules/alignment/pacbio/pac_index.hpp @@ -172,7 +172,7 @@ class PacBioMappingIndex { std::vector second_edge = {g_.EdgeStart(b), g_.EdgeEnd(b)}; size_t result = DISTANT_IN_GRAPH; for (auto v: first_edge) { - omnigraph::DijkstraHelper::UnorientedBoundedDijkstra dijkstra( + auto dijkstra( omnigraph::DijkstraHelper::CreateUnorientedBoundedDijkstra(g_, DISTANT_IN_GRAPH, MAX_VERTICES_IN_DIJKSTRA_FILTERING @@ -184,13 +184,9 @@ class PacBioMappingIndex { } } } - if (result < DISTANT_IN_GRAPH) - return true; - else - return false; - - + return (result < DISTANT_IN_GRAPH); } + typename omnigraph::MappingPath FilterShortAlignments(typename omnigraph::MappingPath mapped_path) const { omnigraph::MappingPath res; size_t length_cutoff = pb_config_.internal_length_cutoff;