Skip to content

Commit

Permalink
Filter out sites with symbolic alleles when filtering to diploid sites (
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnemesh authored Jan 9, 2023
1 parent ed8be72 commit 0edbe6e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ public SimpleDiploidVariantContextFilter (final Iterator<VariantContext> underly

@Override
public boolean filterOut(final VariantContext site) {
// Remove variants with symbolic alleles.
// These would not pass the isCanonicalAllele test later.
if (site.hasSymbolicAlleles()) {
return true;
}
// if requested, filter out any "filtered" site.
if (filterFilterFlagedVariants && site.isFiltered()) {
if (verbose) log.info("Rejecting variant site filtered "+site.toStringWithoutGenotypes());
Expand Down

0 comments on commit 0edbe6e

Please sign in to comment.