Skip to content

Commit

Permalink
Merge pull request #162 from NHS-NGS/cnv_tiering_bugfix
Browse files Browse the repository at this point in the history
replaced int version parsing with hard check
  • Loading branch information
efgstone authored Apr 9, 2020
2 parents 5a90c48 + 54428d8 commit 6ab8364
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gelweb/gel2mdt/database_utils/case_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def parse_ig_variants(self, ig_obj, genome_build, variant_object_count, case_var
return ig_obj, case_variant_list, variant_object_count

def parse_ig_svs(self, ig_obj, genome_build, case_sv_list):
if int(ig_obj.softwareVersions['gel-tiering'].replace('.', '')) <= 1000:
if ig_obj.softwareVersions['gel-tiering'] == '1.0.0':
for variant in ig_obj.structuralVariants:
variant.case_variant = False
return ig_obj, case_sv_list
Expand All @@ -318,7 +318,7 @@ def parse_ig_svs(self, ig_obj, genome_build, case_sv_list):
return ig_obj, case_sv_list

def parse_ig_strs(self, ig_obj, genome_build, case_str_list):
if int(ig_obj.softwareVersions['gel-tiering'].replace('.', '')) <= 1000:
if ig_obj.softwareVersions['gel-tiering'] == '1.0.0':
for variant in ig_obj.shortTandemRepeats:
variant.case_variant = False
return ig_obj, case_str_list
Expand Down

0 comments on commit 6ab8364

Please sign in to comment.