Guarantee mapping output for all variants#52
Merged
bencap merged 10 commits intomavedb-devfrom Aug 5, 2025
Merged
Conversation
This should help slightly with timeout issues we see in production
…g annotated mappings Prior to this change, it was possible for some score rows to generate valid mappings with other score rows not creating a mapped variant. This had some negative downstream consequences, which will be remedied by ensuring that if any variant receives a mapped variant, all variants receive a mapped variant.
b75c18a to
36bc828
Compare
This update changes how alignment is performed for some score sets, so bump major version.
…ing as its sequence
…no nucleotide variants
sallybg
reviewed
Jul 24, 2025
Collaborator
sallybg
left a comment
There was a problem hiding this comment.
This looks good! There are a few places where we are now returning individual variant-level errors when there is a problem with a reference sequence. I lean toward having the whole mapping job fail if these errors happen, although I recognize that for multi-target score sets we'd then be failing all targets if even one target fails.
…andling in mapping functions
…tput-for-all-variants
Collaborator
Author
|
Thanks @sallybg, totally agree. I added some custom exceptions for those possibilities and included them in the try/except block during mapping. I also went ahead and refactored the other custom exceptions we have into a dedicated exception module to keep them a little more organized. |
Merged
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.
Enhancements to error handling:
ValueErrorexceptions (src/dcd_mapping/annotate.py). [1] [2]src/dcd_mapping/transcripts.py). [1] [2]MappedScoreobjects with appropriate error messages (src/dcd_mapping/vrs_map.py). [1] [2]Improvements to mapping logic:
src/api/routers/map.py).Codebase simplification:
src/dcd_mapping/annotate.py,src/dcd_mapping/transcripts.py). [1] [2]src/dcd_mapping/annotate.py). [1] [2]Performance and timeout adjustments:
http_downloadfunction to accommodate slower network conditions (src/dcd_mapping/resource_utils.py).