Package htsjdk.samtools.filter
Class OverclippedReadFilter
- java.lang.Object
-
- htsjdk.samtools.filter.OverclippedReadFilter
-
- All Implemented Interfaces:
SamRecordFilter
public class OverclippedReadFilter extends Object implements SamRecordFilter
Filters out reads with very few unclipped bases, likely due to the read coming from a foreign organism, e.g. bacterial contamination. Based on GATK's OverclippedReadFilter.
-
-
Constructor Summary
Constructors Constructor Description OverclippedReadFilter(int unclippedBasesThreshold, boolean filterSingleEndClips)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanfilterOut(SAMRecord record)Determines whether a SAMRecord matches this filterbooleanfilterOut(SAMRecord first, SAMRecord second)Determines whether a pair of SAMRecords matches this filter
-
-
-
Method Detail
-
filterOut
public boolean filterOut(SAMRecord record)
Description copied from interface:SamRecordFilterDetermines whether a SAMRecord matches this filter- Specified by:
filterOutin interfaceSamRecordFilter- Parameters:
record- the SAMRecord to evaluate- Returns:
- true if the SAMRecord matches the filter, otherwise false
-
filterOut
public boolean filterOut(SAMRecord first, SAMRecord second)
Description copied from interface:SamRecordFilterDetermines whether a pair of SAMRecords matches this filter- Specified by:
filterOutin interfaceSamRecordFilter- Parameters:
first- the first SAMRecord to evaluatesecond- the second SAMRecord to evaluate- Returns:
- true if the pair of records matches filter, otherwise false
-
-