VariantContextFilter
, Predicate<VariantContext>
public class GenotypeQualityFilter extends Object implements VariantContextFilter
Constructor | Description |
---|---|
GenotypeQualityFilter(int gqThreshold) |
Constructor as above that doesn't take a sample, instead it will look at the first genotype of the variant context.
|
GenotypeQualityFilter(int gqThreshold,
String sample) |
Constructor for a filter that will keep VC for which the
genotype quality (GQ) of sample passes a threshold.
|
public GenotypeQualityFilter(int gqThreshold, String sample)
gqThreshold
- the smallest value of GQ that this filter will passsample
- the name of the sample in the variant context whose genotype should be examined.public GenotypeQualityFilter(int gqThreshold)
gqThreshold
- the smallest value of GQ that this filter will passpublic boolean test(VariantContext variantContext)
test
in interface Predicate<VariantContext>
variantContext
- the record to examine for GQ