Package htsjdk.samtools.filter
Class ReadNameFilter
java.lang.Object
htsjdk.samtools.filter.ReadNameFilter
- All Implemented Interfaces:
SamRecordFilter
Filter by a set of specified readnames
$Id$
-
Constructor Summary
ConstructorsConstructorDescriptionReadNameFilter
(File readNameFilterFile, boolean includeReads) ReadNameFilter
(Set<String> readNameFilterSet, boolean includeReads) -
Method Summary
-
Constructor Details
-
ReadNameFilter
-
ReadNameFilter
-
-
Method Details
-
filterOut
Determines whether a SAMRecord matches this filter- Specified by:
filterOut
in interfaceSamRecordFilter
- Parameters:
record
- the SAMRecord to evaluate- Returns:
- true if the SAMRecord matches the filter, otherwise false
-
filterOut
Determines whether a pair of SAMRecords matches this filter- Specified by:
filterOut
in interfaceSamRecordFilter
- Parameters:
first
- the first SAMRecord to evaluatesecond
- the second SAMRecord to evaluate- Returns:
- true if the pair of records matches filter, otherwise false
-