opentargets / issues

Issue tracker for Open Targets Platform and Open Targets Genetics Portal
https://platform.opentargets.org https://genetics.opentargets.org
Apache License 2.0
12 stars 2 forks source link

Bug in Review Status of ClinVar widget #3550

Open prashantuniyal02 opened 3 days ago

prashantuniyal02 commented 3 days ago

Describe the bug Review Status in the ClinVar widget seems to be incorrect.

To Reproduce Steps to reproduce the behaviour:

  1. Go to ClinVar widget
  2. See incorrect review status as practice guideline should be 4 star image
Query ``` query ClinvarQuery($ensemblId: String!, $efoId: String!, $size: Int!, $cursor: String) { target(ensemblId: $ensemblId) { approvedSymbol } disease(efoId: $efoId) { id name eva: evidences( ensemblIds: [$ensemblId] enableIndirect: true datasourceIds: ["eva"] size: $size cursor: $cursor ) { cursor count rows { disease { id name } variantId variantRsId confidence } } } } ``` ``` { "ensemblId": "ENSG00000001626", "efoId": "MONDO_0009061", "cursor": "WzEsIjY0YWI1NmM5M2ZmMTNmYzU4Nzk3NTQ1NmQ5ZDliZDQwOTVlYjQ3NGUiXQ==", "size": 1 } ```
Response ``` { "data": { "target": { "approvedSymbol": "CFTR" }, "disease": { "id": "MONDO_0009061", "name": "cystic fibrosis", "eva": { "cursor": "WzEsIjlkY2EzMGQ3YzBjYWZiMTVkNTQyNTE1NjNmOWZkOTJmYTdhMzRiNDAiXQ==", "count": 4816, "rows": [ { "disease": { "id": "MONDO_0009061", "name": "cystic fibrosis" }, "variantId": "7_117540230_C_T", "variantRsId": "rs121909011", "confidence": "practice guideline" } ] } } } } ```

Additional context

export const clinvarStarMap = {
  "practice guideline": 4,
  "reviewed by expert panel": 3,
  "criteria provided, multiple submitters, no conflicts": 2,
  "criteria provided, conflicting interpretations": 1,
  "criteria provided, single submitter": 1,
  "no assertion for the individual variant": 0,
  "no assertion criteria provided": 0,
  "no assertion provided": 0,
};
d0choa commented 3 days ago

When we find a FE fix, it would be worth promoting to production before the genetics work starts interfering.