Skip to content

Commit

Permalink
Merge branch 'main' into custom_show_cases
Browse files Browse the repository at this point in the history
  • Loading branch information
northwestwitch authored Feb 8, 2024
2 parents f686796 + 1e4a09a commit 8ea493e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ About changelog [here](https://keepachangelog.com/en/1.0.0/)
- Rename `Clinical significanc` to `Germline classification` in ClinVar submissions exported files
- Rename `Comment on clinical significance` to `Comment on classification` in ClinVar submissions exported files
- Show matching partial causatives on variant page
- Matching causatives shown on case page consisting only of variant matching the default panels of the case - bug introduced since scout v4.72 (Oct 18, 2023)

## [4.76]
### Added
Expand Down
2 changes: 1 addition & 1 deletion scout/adapter/mongo/variant.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ def case_matching_causatives(self, case_obj, limit_genes=None):
0:4
] # example: [ "17", "7577559", "G" "A"]

for variant_type in ["clinical", "reseach"]:
for variant_type in ["clinical", "research"]:
positional_variant_ids.add(generate_md5_key(other_var_simple + [variant_type]))

return self.match_affected_gt(case_obj, positional_variant_ids, limit_genes)
Expand Down
8 changes: 1 addition & 7 deletions scout/server/blueprints/cases/controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1397,13 +1397,7 @@ def _matching_causatives(
The subset of all secondary findings found in default gene panels
)
"""
matching_causatives_filter = list(
set(other_causatives_filter + other_causatives_in_default_panels_filter)
)

matching_causatives = store.case_matching_causatives(
case_obj=case_obj, limit_genes=matching_causatives_filter
)
matching_causatives = store.case_matching_causatives(case_obj=case_obj)

other_causatives = []
other_causatives_in_default_panels = []
Expand Down

0 comments on commit 8ea493e

Please sign in to comment.