Closed andrewhercules closed 2 years ago
Notes:
[x] Use the FontAwesome dna icon in Open Targets blue #3489ca
[x] Please remove the existing content and card-based style
[x] For the cross-references section, please use the following link constructs:
Ensembl: https://identifiers.org/ensembl:
+ geneInfo.id
gnomAD: http://gnomad.broadinstitute.org/gene/
+ geneInfo.id
GTEx: https://identifiers.org/gtex:
+ geneInfo.symbol
GeneCards: https://identifiers.org/genecards:
+ geneInfo.symbol
[x] Beside the location of the gene, please display a link to the locus plot labelled "(view locus)"
[x] For the link to the Platform, please link to the target profile page using the following https://platform.opentargets.org/target/
+ geneInfo.id
construct
[x] Use the FontAwesome map-pin icon in Open Targets blue #3489ca
[x] For the cross-references section, please use the link construct logic found in the existing links to Ensembl (line 56) and gnomAD (line 140)
[x] Please remove the External References section (lines 53-64)
[x] Use the FontAwesome chart-bar icon in Open Targets blue #3489ca
[x] Please create a new section called "Study summary" that lists the Author (studyInfo.pubAuthor
), Year (studyInfo.pubDate
formatted to only show the year), Publication (studyInfo.pubJournal
), and PubMed (studyInfo.pmid
with a link to EuropePMC using the http://europepmc.org/article/MED/
+ `studyInfo.pmid link construct). If these fields are not available, please display "N/A"
For the "Has summary stats" field in the "Study summary" section, display "Yes" if studyInfo.hasSumstats
== true
, otherwise display "No"
[x] The "Study size" section can stay as-is
[x] For the cross-references section, please reuse the logic already used in the StudySummary.js section as it accounts for studies from GWAS Catalog, UK Biobank (NEALE and SAIGE), and FinnGen and shows the correct cross-reference link depending on the studyInfo.studyId
field. With the SAIGE link, instead of showing "Homepage", please display the studyInfo.studyId
field, formatted to remove the SAIGE_
prefix
Below are sample GraphQL queries for each different study source:
[x] Use the FontAwesome project-diagram icon in Open Targets blue #3489ca
[x] In the cross-references section, add two entries:
studyInfo.studyId
value and links to the study page (https://genetics.opentargets.org/study/
+ studyInfo.studyId
)variantInfo.chromosome
+ _
+ variantInfo.position
+ _
+ variantInfo.refAllele
+ _
and variantInfo.altAllele
(e.g. 2_21041028_GA) and links to the variant page (https://genetics.opentargets.org/variant/
+variantInfo.chromosome
+ `+
variantInfo.position+
+
variantInfo.refAllele+
and
variantInfo.altAllele`) [x] Reuse the existing "Association summary" section and content, but add a new "Study-variant associations" label to the existing p-value, beta, and beta 95% confidence interval entries
[x] In a new section called "Study details", use the studyInfo
endpoint to display Author (studyInfo.pubAuthor
), Year (studyInfo.pubDate
formatted to show the year only), and Publication (studyInfo.pubJournal
)
[x] In a new section called "Variant details", using the variantInfo
endpoint to display GRCh38 (variantInfo.chromosome
:variantInfo.position
), GRCh37 (variantInfo.chromosomeB37
:variantInfo.positionB37
), and RSID (variantInfo.rsId
)
If the variantInfo.rsId
is null
or blank, display N/A
Minor things to take into account:
work completed
To promote consistency with the Genetics Portal -- and more broadly with the Platform -- I have redesigned the header components for the Genetics Portal entity pages.
The redesigned headers reuse much of the existing content already displayed and available from the GraphQL API.