Package htsjdk.samtools.filter
Class InsertSizeFilter
java.lang.Object
htsjdk.samtools.filter.InsertSizeFilter
- All Implemented Interfaces:
SamRecordFilter
Filter things that fall outside a specified range of insert sizes.
This will automatically omit unpaired reads.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
InsertSizeFilter
public InsertSizeFilter(int minInsertSize, int maxInsertSize)
-
-
Method Details
-
filterOut
Description copied from interface:SamRecordFilter
Determines whether a SAMRecord matches this filter- Specified by:
filterOut
in interfaceSamRecordFilter
- Parameters:
rec
- the SAMRecord to evaluate- Returns:
- true if the SAMRecord matches the filter, otherwise false
-
filterOut
Description copied from interface:SamRecordFilter
Determines whether a pair of SAMRecords matches this filter- Specified by:
filterOut
in interfaceSamRecordFilter
- Parameters:
r1
- the first SAMRecord to evaluater2
- the second SAMRecord to evaluate- Returns:
- true if the pair of records matches filter, otherwise false
-