Skip to content

Commit

Permalink
issue SACGF/variantgrid_private#3652 - properly remove allele liftover
Browse files Browse the repository at this point in the history
  • Loading branch information
davmlaw committed Aug 8, 2024
1 parent 46c191d commit 82382b3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ def handle(self, *args, **options):
if existing_vc != clingen_vc:
logging.info(f"{allele} has variant {repr(existing_vc)} not matching expected for build {va.genome_build}: {repr(clingen_vc)}")
if not dry_run:
liftover_res = AlleleLiftover.objects.filter(allele=allele, genome_build=va.genome_build).delete()
liftover_res = AlleleLiftover.objects.filter(variant_allele=allele,
liftover__genome_build=va.genome_build).delete()
logging.info(f"Removing liftover record: %s", liftover_res)
va_res = va.delete()
logging.info(f"Unlinking variant: %s", va_res)
Expand Down

0 comments on commit 82382b3

Please sign in to comment.