statgen / bravo_api

Server side data processing and retrieval endpoints for BRAVO
MIT License
1 stars 2 forks source link

Gracefully handle loading consequences not in enumeration #22

Open grosscol opened 1 year ago

grosscol commented 1 year ago

Issue or current state

Reading vcfs into mongo backing data will throw errors if newer version of VEP is used with consequences that are not enumerated in snv_consequence2code: https://github.com/statgen/bravo_api/blob/7a52032ae05cf03dfd67a9eba240963d0a5db4bc/bravo_api/models/readers.py#L49-L86

The error will crop up here: https://github.com/statgen/bravo_api/blob/7a52032ae05cf03dfd67a9eba240963d0a5db4bc/bravo_api/models/readers.py#L103

Resolved when

A graceful method of handling consequences is implemented and demonstrated functioning with unit tests.