Skip to content

Commit

Permalink
Possibly fixes redundant alignment sites for symmetric multi context …
Browse files Browse the repository at this point in the history
…seeds.
  • Loading branch information
ksahlin committed Apr 6, 2024
1 parent 1f96118 commit ba2aec4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void merge_hits_into_nams(
for (auto & o : open_nams) {

// Extend NAM
if ((o.query_prev_hit_startpos < h.query_start) && (h.query_start <= o.query_end ) && (o.ref_prev_hit_startpos < h.ref_start) && (h.ref_start <= o.ref_end) ){
if ((o.query_prev_hit_startpos <= h.query_start) && (h.query_start <= o.query_end ) && (o.ref_prev_hit_startpos <= h.ref_start) && (h.ref_start <= o.ref_end) ){
if ( (h.query_end > o.query_end) && (h.ref_end > o.ref_end) ) {
o.query_end = h.query_end;
o.ref_end = h.ref_end;
Expand Down Expand Up @@ -220,7 +220,7 @@ std::pair<float, std::vector<Nam>> find_nams(
}
}
float nonrepetitive_fraction = total_hits > 0 ? ((float) nr_good_hits) / ((float) total_hits) : 1.0;
auto nams = merge_hits_into_nams_forward_and_reverse(hits_per_ref, index.k(), false);
auto nams = merge_hits_into_nams_forward_and_reverse(hits_per_ref, index.k(), true);
return make_pair(nonrepetitive_fraction, nams);
}

Expand Down

0 comments on commit ba2aec4

Please sign in to comment.