SamRecordFilter
public class IntervalFilter extends Object implements SamRecordFilter
Constructor | Description |
---|---|
IntervalFilter(List<Interval> intervals,
SAMFileHeader samHeader) |
Prepare to filter out SAMRecords that do not overlap the given list of intervals
|
Modifier and Type | Method | 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(List<Interval> intervals, SAMFileHeader samHeader)
intervals
- -- must be locus-ordered & non-overlappingpublic boolean filterOut(SAMRecord record)
filterOut
in interface SamRecordFilter
record
- the SAMRecord to evaluatepublic boolean filterOut(SAMRecord first, SAMRecord second)
filterOut
in interface SamRecordFilter
first
- the first SAMRecord to evaluatesecond
- the second SAMRecord to evaluate