Skip to content

Commit

Permalink
Correction to Clinvar-by-codon keys (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattWellie authored Aug 15, 2024
1 parent 753bdc0 commit e26f605
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.2.0
current_version = 1.3.0
commit = True
tag = False

Expand Down
4 changes: 2 additions & 2 deletions clinvarbitration/clinvar_by_codon.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ def main(input_vcf: str, output_root: str):
# extract the clinvar details (added in previous script)
clinvar_allele = variant.INFO['allele_id']
clinvar_stars = variant.INFO['gold_stars']
clinvar_key = f'{clinvar_allele}:{clinvar_stars}'
clinvar_key = f'{clinvar_allele}::{clinvar_stars}'

# iterate over all missense consequences
for csq_dict in variant_consequences(variant, header_csq):
# add this clinvar entry in relation to the protein consequence
protein_key = f"{csq_dict['ensp']}:{csq_dict['protein_position']}"
protein_key = f"{csq_dict['ensp']}::{csq_dict['protein_position']}"
clinvar_dict[protein_key].add(clinvar_key)

# save the dictionary locally
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def read_reqs(filename: str) -> list[str]:
name='clinvarbitration',
description='CPG ClinVar Re-interpretation',
long_description=readme,
version='1.2.0',
version='1.3.0',
author='Matthew Welland, CPG',
author_email='[email protected], [email protected]',
url='https://github.com/populationgenomics/ClinvArbitration',
Expand Down

0 comments on commit e26f605

Please sign in to comment.