Skip to content

Commit

Permalink
Make the bam parser more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
mourisl committed Mar 24, 2022
1 parent 5080641 commit 277a93d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alignments.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,14 +383,14 @@ class Alignments
bool IsTemplateAligned()
{
if ( ( b->core.flag & 0xd ) == 0xd ||
( b->core.flag & 0x5 ) == 0x4 )
( b->core.flag & 0x5 ) == 0x4 || b->core.tid < 0)
return false ;
return true ;
}

bool IsAligned()
{
if ( b->core.flag & 0x4 )
if ( b->core.flag & 0x4 || b->core.tid < 0)
return false ;
return true ;
}
Expand Down

0 comments on commit 277a93d

Please sign in to comment.