Skip to content

Commit

Permalink
fixed bug when looking for symbols matches with * alleles
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy McRae committed Aug 18, 2017
1 parent 73b3ce3 commit 12ccb48
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion clinicalfilter/reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,12 @@ def _get_output_line(candidate, family):

prefs = ['HGNC', 'SYMBOL']

genes = [ var.child.info.symbols[0].get(x, prefs) for x in candidate[3] ]
for x in var.child.info.symbols:
try:
genes = [ x.get(y, prefs) for y in candidate[3] ]
break
except KeyError:
continue
genes = [ x for x in genes if x is not None ]
genes = ','.join(sorted(set(genes)))
result = ','.join(sorted(candidate[1]))
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

setup(
name = "clinical-filter",
version = "0.5.2",
version = "0.5.3",
author = "Jeremy McRae",
author_email = "jeremy.mcrae@sanger.ac.uk",
description="Clinical filtering for trios.",
Expand Down

0 comments on commit 12ccb48

Please sign in to comment.