Skip to content

Commit

Permalink
Fix a bug of merging reads when one is totally contained in the other…
Browse files Browse the repository at this point in the history
… mate.
  • Loading branch information
mourisl committed Oct 15, 2019
1 parent b296a27 commit 5bd6537
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ int main( int argc, char *argv[] )
q[ offset + j ] = mateR.qual[j] ;
}
int len = offset + j ;
for ( j = 0 ; j < slen ; ++j )
for ( j = 0 ; j < slen && j < len ; ++j )
{
if ( j < offset || nr.qual[j] >= q[j] - 14 || r[j] == 'N' )
{
Expand All @@ -359,8 +359,8 @@ int main( int argc, char *argv[] )
}
}

if ( j > len )
len = j ;
//if ( j > len )
// len = j ;
r[len] = q[len] = '\0' ;

if ( 0 )//len > 4 )
Expand Down

0 comments on commit 5bd6537

Please sign in to comment.