public class HeterozygosityFilter extends java.lang.Object implements VariantContextFilter
| Constructor and Description |
|---|
HeterozygosityFilter(boolean keepHets)
Constructor as above that doesn't take a sample, instead it will look at the first genotype of the variant context.
|
HeterozygosityFilter(boolean keepHets,
java.lang.String sample)
Constructor for a filter that will keep (or remove, if keepHets is false) VC for which the
genotype of sample is heterozygous.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
test(VariantContext variantContext) |
public HeterozygosityFilter(boolean keepHets,
java.lang.String sample)
keepHets - determine whether to keep the het sites (true) or filter them out (false)sample - the name of the sample in the variant context whose genotype should be examined.public HeterozygosityFilter(boolean keepHets)
keepHets - if true, the heterozygous variant contexts will pass the filter, otherwise they will fail.public boolean test(VariantContext variantContext)
test in interface java.util.function.Predicate<VariantContext>variantContext - the record to examine for heterozygosity