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