Skip to content

Commit 088d8e9

Browse files
committed
More helpful error message for out-of-scope variants
1 parent 56e36e6 commit 088d8e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dcd_mapping/vrs_map.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def _adjust_genomic_variant_to_ref(
226226
break
227227

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

232232
for idx, start in enumerate(starts):

0 commit comments

Comments
 (0)