Skip to content

Commit

Permalink
issue #1209 - ValueError: Variant hash (96, 1456177, 185113, 688451, …
Browse files Browse the repository at this point in the history
…-983) had no PK in DB!
  • Loading branch information
davmlaw committed Dec 5, 2024
1 parent 93879fb commit 07b7959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snpdb/variant_pk_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def filter_non_reference(self, variant_hashes: Iterable[VariantHash], variant_id
def get_variant_coordinate_hash(self, variant_coordinate: VariantCoordinate) -> VariantHash:
""" For VCF records (needs GenomeBuild supplied) """

variant_coordinate = variant_coordinate.as_internal_symbolic(self.genome_build)
variant_coordinate = variant_coordinate.as_symbolic_or_explicit_according_to_size(self.genome_build)
if self.chrom_contig_id_mappings is None:
raise ValueError("Need to initialise w/GenomeBuild to call get_variant_coordinate_hash")
contig_id = self.chrom_contig_id_mappings[variant_coordinate.chrom]
Expand Down

0 comments on commit 07b7959

Please sign in to comment.