Skip to content

Commit

Permalink
#903 - Fix liftover issue (wrong size of variant tuple)
Browse files Browse the repository at this point in the history
  • Loading branch information
davmlaw committed Sep 20, 2023
1 parent f7cf29b commit ac6c259
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snpdb/liftover.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ def _get_build_liftover_tuples(allele_source: AlleleSource, inserted_genome_buil
if conversion_tool == AlleleConversionTool.SAME_CONTIG:
avt = (allele.pk, variant_id_or_coordinate)
else:
chrom, position, ref, alt = variant_id_or_coordinate
avt = (chrom, position, allele.pk, ref, alt)
chrom, start, end, ref, alt = variant_id_or_coordinate
avt = (chrom, start, end, allele.pk, ref, alt)
build_liftover_vcf_tuples[genome_build][conversion_tool].append(avt)
elif settings.LIFTOVER_NCBI_REMAP_ENABLED:
if allele.liftovererror_set.filter(liftover__genome_build=genome_build,
Expand Down

0 comments on commit ac6c259

Please sign in to comment.