Skip to content

Commit

Permalink
set filter to PASS if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
epiercehoffman committed Apr 26, 2024
1 parent 631d419 commit 803451f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sv-pipeline/scripts/apply_ncr_and_ref_artifact_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ def _apply_filters(record, ploidy_dict, ncr_threshold, filter_reference_artifact
if 'PASS' in record.filter:
del record.filter['PASS']

# if filter is . set to PASS
if len(record.filter) == 0:
record.filter.add('PASS')

# Clean out AF metrics since they're no longer valid
for field in ['AC', 'AF']:
if field in record.info:
Expand Down

0 comments on commit 803451f

Please sign in to comment.