Skip to content

Commit

Permalink
refactored function to check if any variant in a gene is a CNV
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy McRae committed Jul 22, 2015
1 parent 427980c commit 33b472b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/python/clinicalfilter/inheritance.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,7 @@ def check_if_any_variant_is_cnv(self):
""" checks if any of the variants in a gene are CNVs
"""

for var in self.variants:
if var.is_cnv():
return True

return False
return any([ x.is_cnv() for x in self.variants ])

def check_compound_hets(self, variants):
""" checks for compound hets within a gene
Expand Down

0 comments on commit 33b472b

Please sign in to comment.