Skip to content

Commit

Permalink
2.0.5.dev.1: fix bug where aligned reads in single-end would show as …
Browse files Browse the repository at this point in the history
…unaligned in the output when -f is specified
  • Loading branch information
bolosky committed Feb 22, 2025
2 parents 80cf81a + 231b426 commit da7a4a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions SNAPLib/BaseAligner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1492,8 +1492,15 @@ Return Value:
// care about the best alignment. Stop now but mark the result as MultipleHits because we're not
// confident that it's the best one. We don't support mapq in this secnario, because we haven't
// explored enough to compute it.


(altAwareness ? scoresForNonAltAlignments : scoresForAllAlignments).fillInSingleAlignmentResult(primaryResult, popularSeedsSkipped);
//
// Force MAPQ 0 in this case, since we didn't explore the whole space and can't say.
//
primaryResult->status = MultipleHits;
primaryResult->mapq = 0;
firstALTResult->status = NotFound;
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion SNAPLib/CommandProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Revision History:
#include "Compat.h"
#include "HitDepth.h"

const char *SNAP_VERSION = "2.0.4.dev.1";
const char *SNAP_VERSION = "2.0.5.dev.1";

static void usage()
{
Expand Down

0 comments on commit da7a4a6

Please sign in to comment.