Skip to content

Commit

Permalink
remove superfluous asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
hmusta committed Sep 8, 2023
1 parent 5bb30fd commit 5705309
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions metagraph/src/graph/alignment/aligner_seeder_methods.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -626,9 +626,6 @@ It merge_into_mums(const DeBruijnGraph &graph,
using seed_t = std::remove_reference_t<decltype(*begin)>;

if constexpr(std::is_same_v<seed_t, Alignment>) {
assert(std::all_of(begin, end, [&](const auto &a) {
return a.is_valid(graph, &config);
}));
// first, move all inexact matches to the front and ignore them
begin = std::partition(begin, end, [](const auto &a) {
const auto &cigar = a.get_cigar().data();
Expand All @@ -651,12 +648,6 @@ It merge_into_mums(const DeBruijnGraph &graph,
return end;
}

if constexpr(std::is_same_v<seed_t, Seed>) {
assert(std::all_of(begin, end, [&](const auto &a) {
return Alignment(a, config).is_valid(graph, &config);
}));
}

ssize_t graph_k = graph.get_k();
std::sort(begin, end, [](const auto &a, const auto &b) {
return std::pair(a.get_query_view().end(), a.get_query_view().begin())
Expand Down Expand Up @@ -910,7 +901,6 @@ It merge_into_mums(const DeBruijnGraph &graph,
c += coord_diff;
}
}
assert(inserted_seed.is_valid(graph, &config));
a_i.splice(std::move(inserted_seed));
assert(a_i.size());
assert(a_i.label_column_diffs.empty());
Expand Down

0 comments on commit 5705309

Please sign in to comment.