Skip to content

Fix protein layer generation and error handling in vrs_map#95

Open
bencap wants to merge 2 commits intofeature/bencap/53/reference-identical-vrsfrom
bugfix/bencap/protein-layer-generated-unnecessarily
Open

Fix protein layer generation and error handling in vrs_map#95
bencap wants to merge 2 commits intofeature/bencap/53/reference-identical-vrsfrom
bugfix/bencap/protein-layer-generated-unnecessarily

Conversation

@bencap
Copy link
Copy Markdown
Collaborator

@bencap bencap commented Apr 16, 2026

This pull request refines the logic for handling protein alignment results in the _map_protein_coding function, improving error handling and reducing redundant error messages. Under certain circumstances, this bug caused both nucleotide and protein mappings to be emitted rather than just a single layer.

Error handling improvements:

  • Updated the logic to only generate error messages about missing protein alignment results when there is no valid nucleotide mapping, preventing redundant error messages when a valid nucleotide mapping exists. (src/dcd_mapping/vrs_map.py, src/dcd_mapping/vrs_map.pyL832-R840)

@bencap bencap requested a review from sallybg April 16, 2026 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant