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

Genetics Variant page review #3601

Open prashantuniyal02 opened 3 weeks ago

prashantuniyal02 commented 3 weeks ago

General

Variant page

Header:

Widget order?

Metadata:

Overall about widgets:

In silico predictors:

Variant effect predictor:

ClinVar: good

Uniprot variants: good

GWAS Credible sets and molQTL credible sets (these changes also apply to the GWAS credible sets widget in the study page):

PheWAS plot:

buniello commented 3 weeks ago

Adding these points from #3597

VEP

Column headers need clearer definitions for better understanding

When downloading VEP data, users request: 1. Uniprot links 2. Chromosome and position for genes

In-silico predictors

Suggestion: adding hyperlinks or hover text to explain prediction methods. For example, SIFT=0 means "deleterious," which is opposite to PolyPhen where a score closer to 1 indicates deleterious

d0choa commented 2 weeks ago

@chinmehta one extra bit:

d0choa commented 1 week ago

Another small request:

In the VEP widget, we would like to expand the query to include the biotype

query VariantEffectPredictorQuery($variantId: String!) {
  variant(variantId: $variantId){
    id
    transcriptConsequences {
      variantConsequences {
        id
        label
      }
      aminoAcidChange
      uniprotAccessions
      codons
      distanceFromFootprint
      distanceFromTss
      target {
        id
        approvedSymbol
        biotype #### New column
      }
      impact
      consequenceScore
      transcriptIndex
      transcriptId
      lofteePrediction
      siftPrediction
      polyphenPrediction
    }
    referenceAllele
    alternateAllele
  }
}

Using the new response, we would like to be able to tag in the Gene column all genes that have biotype == protein_coding. All the ones displaying different biotypes will not be tagged.

The most immediate UI I could think of is a chip displaying protein coding after the gene name and the tooltip. Probably an unfilled chip is more appropriate than the filled one, as we don't want to bring all the attention to it.

Image

I'll gather more feedback from @buniello and others next week, but this should do the job.

d0choa commented 1 week ago

There is also a bug in the pharmacogenetics widget.

The next page shows no rows, but the API has some reasonable responses.

https://deploy-preview-524--ot-platform-partner.netlify.app/variant/7_117642566_G_A

There are some suspicious nulls in the phenotypeFromSourceId column that perhaps might cause this issue:

"pharmacogenomics": [
        {
          "genotypeId": "7_117642566_G_A,G",
          "isDirectTarget": false,
          "drugs": [
            {
              "drugFromSource": "ataluren",
              "drugId": "CHEMBL256997"
            }
          ],
          "phenotypeFromSourceId": null,
          "genotypeAnnotationText": "Patients with the rs77010898 AG genotype and cystic fibrosis may have improvement in chloride transport when treated with ataluren as compared to patients with the GG genotype. Randomized clinical trials found improvement in chloride transport, but did not find evidence for improved pulmonary function after 2 weeks of treatment. Other genetic and clinical factors may also influence changes in chloride transport and improvement of pulmonary symptoms in patients with cystic fibrosis.",
          "phenotypeText": "improvement in chloride transport",
          "pgxCategory": "other",
          "evidenceLevel": "3",
          "studyId": "1447954397",
          "literature": [
            "21233271",
            "18722008",
            "24836205",
            "20622033"
          ]
        },

Feel free to branch it out to a different ticket if significant

d0choa commented 1 week ago

One thing to try here (probably in separate PR) is to use a header of 2 rows in the credible set widgets.

For GWAS credible set:

2nd row header 1st row header
More details
Lead variant
P-value
Beta
Trait Study
Diseases Study
Identifier Study
Posterior probability Fine-mapping
Method Fine-mapping
Confidence Fine-mapping
Credible set size Fine-mapping
Top gene Locus2gene
Score Locus2gene

For molQTL credible set:

2nd row header 1st row header
More details
Lead variant
P-value
Beta
Type Study
Affected gene Study
Affected tissue/cell Study
Condition Study
Posterior probability Fine-mapping
Method Fine-mapping
Confidence Fine-mapping
Credible set size Fine-mapping