populationgenomics / talos

Rare Disease variant reanalysis tool
MIT License
6 stars 4 forks source link

Adds versions to models #392

Closed MattWellie closed 6 months ago

MattWellie commented 6 months ago

Fixes

Proposed Changes

  1. read the model version attr from the JSON data
  2. if current != version in file, read as JSON, pass through an adapter method, then parse as a current object (e.g. adding in missing mandatory fields, or changing a string to a list of strings)
  3. if current == version in file, parse JSON directly

This will be a starting point, and any breaking future changes to the models will have to come with a method to preserve backwards compatibility

Checklist