SamRecordFilter
public class TagFilter extends Object implements SamRecordFilter
Constructor | Description |
---|---|
TagFilter(String tag,
Object value) |
Constructor for a single value
|
TagFilter(String tag,
Object value,
Boolean includeReads) |
Constructor for a single value
|
TagFilter(String tag,
List<Object> values) |
Constructor for multiple values
|
TagFilter(String tag,
List<Object> values,
Boolean includeReads) |
Constructor for multiple values
|
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 paired of SAMRecord matches this filter
|
public TagFilter(String tag, Object value)
tag
- the key of the tag to matchvalue
- the value to matchpublic TagFilter(String tag, List<Object> values)
tag
- the key of the tag to matchvalues
- the matching valuespublic TagFilter(String tag, Object value, Boolean includeReads)
tag
- the key of the tag to matchvalue
- the value to matchincludeReads
- whether to include or not include reads that match filterpublic 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