VariantContextFilter, Predicate<VariantContext>public class HeterozygosityFilter extends Object implements VariantContextFilter
| Constructor | 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,
String sample) |
Constructor for a filter that will keep (or remove, if keepHets is false) VC for which the
genotype of sample is heterozygous.
|
public HeterozygosityFilter(boolean keepHets,
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 Predicate<VariantContext>variantContext - the record to examine for heterozygosity