Skip to content

Commit

Permalink
Merge pull request #360 from apriltuesday/february-fixes
Browse files Browse the repository at this point in the history
deduplicate clinical significances
  • Loading branch information
apriltuesday authored Jan 25, 2023
2 parents 787f269 + 5c88b2f commit 8ddf9f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,11 @@ def clinical_significance_raw(self):

@property
def clinical_significance_list(self):
"""The normalised list of all clinical significance values. The original value is (1) split into multiple values
by 3 delimiters: ('/', ', ', '; '), (2) converted into lowercase and (3) sorted lexicographically. Example:
'Benign/Likely benign, risk_factor' → ['benign', 'likely benign', 'risk factor']. See /data-exploration/
clinvar-variant-types/README.md for further explanation."""
return sorted(re.split('/|, |; ', self.clinical_significance_raw.lower().replace('_', ' ')))
"""The normalised deduplicated list of all clinical significance values. The original value is (1) split into
multiple values by 3 delimiters: ('/', ', ', '; '), (2) converted into lowercase and (3) sorted
lexicographically. Example: 'Benign/Likely benign, risk_factor' → ['benign', 'likely benign', 'risk factor'].
See /data-exploration/clinvar-variant-types/README.md for further explanation."""
return sorted(list(set(re.split('/|, |; ', self.clinical_significance_raw.lower().replace('_', ' ')))))

@property
def allele_origins(self):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def get_requires():


setup(name='eva_cttv_pipeline',
version='2.7.2',
version='2.7.3',
packages=find_packages(),
install_requires=get_requires(),
#! TBD: list as a dependency subpackage 'clinvar_xml_utils.clinvar_xml_utils.clinvar_xml_utils'
Expand Down

0 comments on commit 8ddf9f4

Please sign in to comment.