better filtering, plus deal with case where user doesn't input maxlength
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@939 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
f6e985d97f
commit
58f7ae8628
|
|
@ -25,7 +25,8 @@ public class IndelIntervalWalker extends ReadWalker<IndelIntervalWalker.Interval
|
|||
|
||||
public boolean filter(char[] ref, SAMRecord read) {
|
||||
return ( !read.getReadUnmappedFlag() && // mapped
|
||||
read.getReadLength() <= maxReadLength && // not too big
|
||||
(maxReadLength < 0 || read.getReadLength() <= maxReadLength) && // not too big
|
||||
read.getMappingQuality() != 0 && // positive mapping quality
|
||||
read.getAlignmentBlocks().size() > 1); // indel
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue