feat(vrs_map): add VRS mapping support for reference-identical variants#94
Open
bencap wants to merge 2 commits intomavedb-devfrom
Open
feat(vrs_map): add VRS mapping support for reference-identical variants#94bencap wants to merge 2 commits intomavedb-devfrom
bencap wants to merge 2 commits intomavedb-devfrom
Conversation
- Add `build_ref_identical_allele` and `translate_ref_identical_to_vrs` to `lookup.py` to represent HGVS `.=` variants as VRS Alleles with a `ReferenceLengthExpression` state - Handle `.=` variants explicitly in `_construct_vrs_allele` and `_create_post_mapped_hgvs_strings` instead of silently skipping them - Remove `len(hgvs) == 3` guards from validity predicates and early-exit checks; the reference-identical case is now handled directly - Fix `is_intronic_variant` to return False for position-less variants - Skip `vrs_ref_allele_seq` annotation for `ReferenceLengthExpression` alleles to avoid redundant and expensive full-sequence lookups
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
build_ref_identical_alleleandtranslate_ref_identical_to_vrstolookup.pyto represent HGVS.=variants as VRS Alleles with aReferenceLengthExpressionstate.=variants explicitly in_construct_vrs_alleleand_create_post_mapped_hgvs_stringsinstead of silently skipping themlen(hgvs) == 3guards from validity predicates and early-exit checks; the reference-identical case is now handled directlyis_intronic_variantto return False for position-less variantsvrs_ref_allele_seqannotation forReferenceLengthExpressionalleles to avoid redundant and expensive full-sequence lookupsOpens #93 for us to decide on how to move forward with these sorts of ambiguous strings. See ga4gh/vrs#656 for additional discussion and context.