Skip to content

Commit

Permalink
fix possibility of a negative fragment length that shouldn't have hap…
Browse files Browse the repository at this point in the history
…pened (#3463)
  • Loading branch information
tedsharpe authored Aug 18, 2017
1 parent a1292ee commit ad8a78b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ public void addRead( final int readLength, final int templateLength, final boole
nReads += 1;
nBases += readLength;
if ( isTemplateLengthTestable ) {
fragmentSizes.addObservation(templateLength);
fragmentSizes.addObservation(Math.abs(templateLength));
}
}

Expand Down

0 comments on commit ad8a78b

Please sign in to comment.