Skip to content

Commit

Permalink
Rename dropoff to dropoff_threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelm committed Jul 25, 2023
1 parent b74eb4b commit 2aa7785
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/aln.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static inline void align_SE(
int k,
const References& references,
Details& details,
float dropoff,
float dropoff_threshold,
int max_tries,
unsigned max_secondary
) {
Expand All @@ -100,8 +100,7 @@ static inline void align_SE(
int min_mapq_diff = best_edit_distance;
for (auto &nam : nams) {
float score_dropoff = (float) nam.n_hits / n_max.n_hits;

if (tries >= max_tries || best_edit_distance == 0 || score_dropoff < dropoff) { // only consider top 20 hits as minimap2 and break if alignment is exact match to reference or the match below droppoff cutoff.
if (tries >= max_tries || best_edit_distance == 0 || score_dropoff < dropoff_threshold) {
break;
}
bool consistent_nam = reverse_nam_if_needed(nam, read, references, k);
Expand Down

0 comments on commit 2aa7785

Please sign in to comment.