From 5d276d72502b46aedafe3a21ed490b359d38a8f5 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Mon, 19 Jul 2021 17:34:00 +0300 Subject: [PATCH] cosmetics --- .../src/common/modules/alignment/pacbio/pac_index.hpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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;