Skip to content

Commit

Permalink
More helpful error message for out-of-scope variants
Browse files Browse the repository at this point in the history
  • Loading branch information
sallybg committed Jul 5, 2024
1 parent 56e36e6 commit 088d8e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dcd_mapping/vrs_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def _adjust_genomic_variant_to_ref(
break

if query_subrange_containing_hit is None or target_subrange_containing_hit is None:
msg = "Hit was not contained, or multi-position hit was not fully contained, within the query and/or target subranges."
msg = "Variant was not contained, or multi-position variant was not fully contained, within the aligned portion of the query sequence."
raise ValueError(msg)

for idx, start in enumerate(starts):
Expand Down

0 comments on commit 088d8e9

Please sign in to comment.