Skip to content

Commit

Permalink
remove more filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
MattWellie committed Nov 16, 2023
1 parent b9306e2 commit 2460cba
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions reanalysis/hail_filter_sv.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
from cpg_utils.hail_batch import init_batch, genome_build

from reanalysis.hail_filter_and_label import (
filter_on_quality_flags,
green_and_new_from_panelapp,
subselect_mt_to_pedigree,
ONE_INT,
Expand Down Expand Up @@ -148,17 +147,12 @@ def main(

mt = hl.read_matrix_table(mt_path)

# plug in this dummy variable so that we can use
# some more shared methods with the Small Variant use-case
mt = mt.annotate_rows(info=mt.info.annotate(clinvar_aip=MISSING_INT))

# subset to currently considered samples
mt = subselect_mt_to_pedigree(mt, pedigree=pedigree)

# apply blanket filters
mt = filter_on_quality_flags(mt)
mt = filter_matrix_by_ac(mt)
mt = filter_matrix_by_af(mt, af_threshold=0.05)
mt = filter_matrix_by_af(mt)

# pre-filter the MT and rearrange
mt = restructure_mt_by_gene(mt)
Expand Down

0 comments on commit 2460cba

Please sign in to comment.