deal with screwy solid reads in the cleaner (no cigar strings)

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@1171 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
ebanks 2009-07-05 16:49:58 +00:00
parent 8bcbf7f18a
commit 338cdbebad
1 changed files with 2 additions and 2 deletions

View File

@ -225,8 +225,8 @@ public class IntervalCleanerWalker extends LocusWindowWalker<Integer, Integer>
// decide which reads potentially need to be cleaned
for ( SAMRecord read : reads ) {
// we currently can not deal with clipped reads correctly
if ( readIsClipped(read) ) {
// we currently can not deal with clipped reads correctly (or screwy record)
if ( read.getCigar().numCigarElements() == 0 || readIsClipped(read) ) {
refReads.add(read);
continue;
}