Skip to content

Commit

Permalink
issue #817 - bcftools liftover - only store clingen allele liftover f…
Browse files Browse the repository at this point in the history
…ailure once
  • Loading branch information
davmlaw committed Aug 19, 2024
1 parent 3ffc35d commit 7e3ee2f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions snpdb/liftover.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,11 @@ def _liftover_using_dest_variant_coordinate(allele, dest_genome_build: GenomeBui
# Store the fact that we couldn't use ClinGen
if clingen_failure_message:
lr = LiftoverRun.get_clingen_auto_fail_liftover_run(dest_genome_build)
AlleleLiftover.objects.create(liftover=lr, allele=allele, status=ProcessingStatus.ERROR,
error={"message": clingen_failure_message})
# we may have been here many times before, so check if already exists
AlleleLiftover.objects.get_or_create(liftover=lr, allele=allele, status=ProcessingStatus.ERROR,
defaults={
"error": {"message": clingen_failure_message},
})

if g_hgvs is None:
if settings.LIFTOVER_DBSNP_ENABLED:
Expand Down

0 comments on commit 7e3ee2f

Please sign in to comment.