Skip to content

bug: Multi-Variant Transcript IDs Fail RegEx Validation#41

Merged
afrubin merged 1 commit intofeature/bencap/39/interface-for-hgvs-substringsfrom
bugfix/bencap/40/multi-variant-transcript-ids-fail-regex-validation
May 6, 2025
Merged

bug: Multi-Variant Transcript IDs Fail RegEx Validation#41
afrubin merged 1 commit intofeature/bencap/39/interface-for-hgvs-substringsfrom
bugfix/bencap/40/multi-variant-transcript-ids-fail-regex-validation

Conversation

@bencap
Copy link
Contributor

@bencap bencap commented Apr 3, 2025

Fixes an issue where the target identifier string was not captured for multi-variants,
which was causing regex validation to fail in cases where the multi-variant had a
target identifier. To fix this change, an additional capture group <variant> was
added as a wrapper around the <single_variant> and <multi_variant> capture groups.
The regex expression was treating the boolean expression as

(<target>:<single_variant>)|<multi_variant>

and now treats it as

<target>:(<single_variant>|<multi_variant>)

Additional test cases were added to better capture these potential issues with regex
validation of multi-variant (and single-variant) variants in the future.

Fixes #38 (branch is named wrong).

Fixes an issue where the target identifier string was not captured for multi-variants,
which was causing regex validation to fail in cases where the multi-variant had a
target identifier. To fix this change, an additional capture group `<variant>` was
added as a wrapper around the `<single_variant>` and `<multi_variant>` capture groups.
The regex expression was treating the boolean expression as

```
(<target>:<single_variant>)|<multi_variant>
```
and now treats it as
```
<target>:(<single_variant>|<multi_variant>)
```

Additional test cases were added to better capture these potential issues with regex
validation of multi-variant (and single-variant) variants in the future.
@bencap bencap added the bug Something isn't working label Apr 3, 2025
@bencap bencap requested a review from afrubin April 3, 2025 15:59
@bencap bencap changed the title Multi-Variant Transcript IDs Fail RegEx Validation bug: Multi-Variant Transcript IDs Fail RegEx Validation Apr 3, 2025
@afrubin afrubin merged commit 43d3f5b into feature/bencap/39/interface-for-hgvs-substrings May 6, 2025
@afrubin afrubin deleted the bugfix/bencap/40/multi-variant-transcript-ids-fail-regex-validation branch May 6, 2025 04:47
@afrubin afrubin restored the bugfix/bencap/40/multi-variant-transcript-ids-fail-regex-validation branch May 6, 2025 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants