Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SelectVariants JEXL filter fixes and refactor #8092

Merged
merged 16 commits into from
Jan 7, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ private VariantContext filter(final VariantContext variant, final FeatureContext
}

for ( final JexlVCMatchExp exp : filterExps ) {
// Note that g is set to null since filterExps contains INFO-level filters
if ( matchesFilter(vc, null, exp, invertFilterExpression) ) {
filters.add(exp.name);
}
Expand Down Expand Up @@ -437,6 +438,7 @@ private List<String> getGenotypeFilters(final VariantContext vc, final Genotype

// Add if expression filters the variant context
for (final JexlVCMatchExp exp : genotypeFilterExps) {
// Give the genotype g to mathchesFilter enables JEXL matching on genotype fields
if (matchesFilter(vc, g, exp, invertGenotypeFilterExpression)) {
filters.add(exp.name);
}
Expand Down
Loading