populationgenomics / automated-interpretation-pipeline

Rare Disease variant prioritisation MVP
MIT License
5 stars 4 forks source link

Tag with first time seen #213

Closed MattWellie closed 1 year ago

MattWellie commented 1 year ago

Fixes

Proposed Changes

Notes:

First_seen is probably the wrong name for this field. The value in here is the most recent date that one of the present categories was first seen. Worked example because otherwise I'll forget the reasoning:

I've gone with N here, because it's the last time chronologically that something new was found in this variant - even though the Category at that time is not currently assigned.

The main reason for this choice is that it stops the annotated date flip-flopping in time - the first_seen attribute is supposed to be the last time new information was produced for this variant, and that marker should only move forward in time, not move backwards as it would in this example (on the 3 hypothetical reports it would be D -> N -> D, reflecting only the categories present for those reports).

I've spent too much time thinking about the 'correct' action here, and I just don't think it's that important.

Checklist

MattWellie commented 1 year ago

Is there value in storing (not displaying) the per category date added in our history file?

with the current logic here the first date of each individual category being applied is recorded… but with the way the date is presented that’s kind of irrelevant. It could easily be replaced with a single date per variant of ‘latest new thing’, which would move forward if a new category is assigned. That would remove a few loops from the logic for no loss of info in the report.

Recording all category-dates in the historic data could potentially be interesting over longer timeframes, for retrospective checks, e.g. pinpointing the month a clinvar rating became pathogenic. I don’t know that we’re really going to be doing those checks on a regular basis…

I might be misreading your comment though, and barking up the wrong tree

MattWellie commented 1 year ago

Tabling the comment for a F2F discussion