Skip to content

Commit

Permalink
Merge pull request #7 from eastgenomics/add_exomiser_threshold
Browse files Browse the repository at this point in the history
add exomiser score threshold filter (#7)
  • Loading branch information
chrispyatt authored Jul 2, 2024
2 parents db1c1ff + c727e68 commit 835dea4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion resources/home/dnanexus/make_workbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,13 @@ def create_additional_analysis_page(self):
snv['reportEvents'] = top_event
ranked.append(snv)

to_report = VariantUtils.get_top_3_ranked(ranked)
# We only want Exomiser variants with a score >= 0.75, so we need to
# filter the list to keep only these
ranked_and_above_threshold = [
x for x in ranked if x['reportEvents']['score'] >= 0.75
]

to_report = VariantUtils.get_top_3_ranked(ranked_and_above_threshold)

for snv in to_report:
# put reportevents dict within a list to allow it to have an index
Expand Down

0 comments on commit 835dea4

Please sign in to comment.