SACGF / variantgrid

VariantGrid public repo
Other
23 stars 2 forks source link

Search for MT HGVS behaves differently across genome builds #1115

Open davmlaw opened 3 months ago

davmlaw commented 3 months ago

ENST00000361381.2(MT-ND4):c.278_279insT NC_012920.1:m.11037_11038insT

Both went straight to the allele page when genome build set to GRCh38, without any warning that the alt was different BUT correct warning was shown when preferred build was GRCh37 (even though variant was imported as GRCh38)

davmlaw commented 2 months ago

A MT variant is only created once, then linked to the allele via both genome builds

So when you search for it, it gives you 2 entries that match on both builds

Since it only jumps for 1 result

davmlaw commented 2 months ago

I implemented this by making SearchResult hashable/have equality based on Preview - so this is used to finally merge the results from diff genome builds and jump to just 1