Skip to content

Commit

Permalink
1.0beta.22: Paired read matcher doesn't drop reads where both mates a…
Browse files Browse the repository at this point in the history
…re unaligned in the input
  • Loading branch information
bolosky committed Nov 4, 2015
1 parent c45c723 commit ee3efdd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SNAPLib/CommandProcessor.cpp
Expand Up @@ -35,7 +35,7 @@ Pulled from the main program and expanded to handle daemon mode
#include "Error.h"
#include "Compat.h"

const char *SNAP_VERSION = "1.0beta.21";
const char *SNAP_VERSION = "1.0beta.22";

static void usage()
{
Expand Down
2 changes: 1 addition & 1 deletion SNAPLib/PairedReadMatcher.cpp
Expand Up @@ -246,7 +246,7 @@ PairedReadMatcher::getNextReadPair(
}

if (quicklyDropUnpairedReads) {
if (localRead.getOriginalPNEXT() == 0 || localRead.getOriginalRNEXTLength() == 1 && localRead.getOriginalRNEXT()[0] == '*') {
if (((localRead.getOriginalSAMFlags() & SAM_NEXT_UNMAPPED) == 0) && (localRead.getOriginalPNEXT() == 0 || localRead.getOriginalRNEXTLength() == 1 && localRead.getOriginalRNEXT()[0] == '*')) {
nReadsQuicklyDropped++;
skipped--;
continue;
Expand Down

0 comments on commit ee3efdd

Please sign in to comment.