-
Notifications
You must be signed in to change notification settings - Fork 0
Guarantee mapping output for all variants #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Guarantee mapping output for all variants #52
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
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
|
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. |
sallybg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
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).