public class IntervalFilter extends java.lang.Object implements SamRecordFilter
| Constructor and Description |
|---|
IntervalFilter(java.util.List<Interval> intervals,
SAMFileHeader samHeader)
Prepare to filter out SAMRecords that do not overlap the given list of intervals
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
filterOut(SAMRecord record)
Determines whether a SAMRecord matches this filter
|
boolean |
filterOut(SAMRecord first,
SAMRecord second)
Determines whether a pair of SAMRecord matches this filter
|
public IntervalFilter(java.util.List<Interval> intervals, SAMFileHeader samHeader)
intervals - -- must be locus-ordered & non-overlappingpublic boolean filterOut(SAMRecord record)
filterOut in interface SamRecordFilterrecord - the SAMRecord to evaluatepublic boolean filterOut(SAMRecord first, SAMRecord second)
filterOut in interface SamRecordFilterfirst - the first SAMRecord to evaluatesecond - the second SAMRecord to evaluate