-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from Clinical-Genomics/clinsig_ignorecase
Clinsig fixcase
- Loading branch information
Showing
4 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from preClinVar.constants import CLNSIG_TERMS | ||
from preClinVar.file_parser import set_item_clin_sig | ||
|
||
|
||
def test_set_item_clin_sig_fix_case(): | ||
"""Test the function that collects clinsig from Variant file when clisnsig term has wrong uppercase/lowercase""" | ||
# GIVEN a variant dictionary with a non-compliant slinsig value | ||
item = {} | ||
variant_dict = {"Clinical significance": "Likely Pathogenic"} | ||
|
||
# WHEN clisig is collected from variant_dict | ||
set_item_clin_sig(item, variant_dict) | ||
|
||
# THEN it's converted into a compliant term | ||
assert item["clinicalSignificance"]["clinicalSignificanceDescription"] in CLNSIG_TERMS |