Skip to content

Commit

Permalink
Soft clipped bases shouldn't be counted in the delocalized BQSR.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Poplin committed Nov 26, 2012
1 parent 74c9db9 commit d1f076f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -227,7 +227,7 @@ private boolean isLowQualityBase( final GATKSAMRecord read, final int offset ) {
*/
public Long map( final ReferenceContext ref, final GATKSAMRecord originalRead, final RefMetaDataTracker metaDataTracker ) {

final GATKSAMRecord read = ReadClipper.hardClipAdaptorSequence(originalRead);
final GATKSAMRecord read = ReadClipper.hardClipSoftClippedBases( ReadClipper.hardClipAdaptorSequence(originalRead) );
if( read.isEmpty() ) { return 0L; } // the whole read was inside the adaptor so skip it

RecalUtils.parsePlatformForRead(read, RAC);
Expand Down

0 comments on commit d1f076f

Please sign in to comment.