From 088d8e93b92115023aea1030ae1e969320ef70e0 Mon Sep 17 00:00:00 2001 From: Sally Grindstaff Date: Fri, 5 Jul 2024 11:30:00 -0700 Subject: [PATCH] More helpful error message for out-of-scope variants --- src/dcd_mapping/vrs_map.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dcd_mapping/vrs_map.py b/src/dcd_mapping/vrs_map.py index 4756323..bf31775 100644 --- a/src/dcd_mapping/vrs_map.py +++ b/src/dcd_mapping/vrs_map.py @@ -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):