Closed prashantuniyal02 closed 1 month ago
Describe the bug Review Status in the ClinVar widget seems to be incorrect.
To Reproduce Steps to reproduce the behaviour:
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, };
When we find a FE fix, it would be worth promoting to production before the genetics work starts interfering.
Describe the bug Review Status in the ClinVar widget seems to be incorrect.
To Reproduce Steps to reproduce the behaviour:
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