Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/mapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,10 @@ pub fn align_single_end_read(
// Use score-based dropoff: NAMs are sorted by score.
let score_dropoff = nam.score / nam_max.score;

if (tries > 1 && best_edit_distance == 0)
|| score_dropoff < mapping_parameters.dropoff_threshold
// Always extend at least the top-2 NAMs so that second_best_score is
// meaningful when computing MAPQ score.
if tries > 1
&& (best_edit_distance == 0 || score_dropoff < mapping_parameters.dropoff_threshold)
{
break;
}
Expand Down
Loading