Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
-->

<!--- Deployment Context -->
<script type="text/javascript" src="%PUBLIC_URL%/profiles/default.js"></script>
<script type="text/javascript" src="%PUBLIC_URL%/profiles/profile-partners.js"></script>
<script type="text/javascript" src="%PUBLIC_URL%/config.js"></script>
</body>
</html>
3 changes: 2 additions & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
const config = {
urlApi:
window.configUrlApi ??
'https://api.platform.dev.opentargets.xyz/api/v4/graphql',
// 'https://api.platform.dev.opentargets.xyz/api/v4/graphql',
'https://api.partner-platform.dev.opentargets.xyz/api/v4/graphql',
googleTagManagerID: window.configGoogleTagManagerID ?? null,
efoURL: window.configEFOURL ?? '/data/ontology/efo_json/diseases_efo.jsonl',

Expand Down
1 change: 1 addition & 0 deletions src/sections/evidence/OTEncore/Body.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ const getColumns = classes => [
to={`https://cellmodelpassports.sanger.ac.uk/passports/${
diseaseCellLine.id
}`}
key={diseaseCellLine.id}
>
{diseaseCellLine.name}
</Link>
Expand Down
63 changes: 53 additions & 10 deletions src/sections/evidence/OTValidation/Body.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const useStyles = makeStyles(theme => {
width: '32px',
},
hsGreen: {
backgroundColor: '#407253',
backgroundColor: '#407253', // same as PPP green
border: `1px solid ${theme.palette.grey[600]}`,
},
hsRed: {
Expand All @@ -59,7 +59,17 @@ const useStyles = makeStyles(theme => {
color: theme.palette.grey[600],
border: `1px solid ${theme.palette.grey[600]}`,
},
hsGrey: {
hsBlack: {
backgroundColor: '#000',
border: `1px solid ${theme.palette.grey[600]}`,
},
hsBlue: {
backgroundColor: '#3489ca',
border: `1px solid ${theme.palette.grey[600]}`,
},
// in the unlikely case the hypothesis status is unavailable,
// we don't want to display the primary green (for PPP)
hsUndefined: {
backgroundColor: theme.palette.grey[500],
border: `1px solid ${theme.palette.grey[600]}`,
},
Expand Down Expand Up @@ -87,7 +97,7 @@ const hypothesesStatus = [
status: 'expected but not observed',
expected: true,
observed: false,
styles: 'hsGrey',
styles: 'hsRed',
},
{
status: 'observed and expected',
Expand All @@ -99,13 +109,13 @@ const hypothesesStatus = [
status: 'not expected and not observed',
expected: false,
observed: false,
styles: 'hsWhite',
styles: 'hsBlack',
},
{
status: 'observed but not expected',
expected: false,
observed: true,
styles: 'hsRed',
styles: 'hsBlue',
},
];

Expand All @@ -121,6 +131,11 @@ const getColumns = classes => [
{
id: 'projectDescription',
label: 'OTAR primary project',
tooltip: (
<>
Binary assessment of gene perturbation effect in primary project screen
</>
),
renderCell: row => (
<Link to={`http://home.opentargets.org/${row.projectId}`} external>
{row.projectDescription}
Expand Down Expand Up @@ -171,6 +186,7 @@ const getColumns = classes => [
items={row.biomarkerList.map(bm => ({
label: bm.name,
tooltip: bm.description,
customClass: classes['hsWhite'],
}))}
/>
);
Expand All @@ -187,7 +203,8 @@ const getColumns = classes => [
},
{
id: 'confidence',
label: 'Hit',
label: 'OTVL hit',
tooltip: <>Binary assessment of gene perturbation effect in contrast</>,
renderCell: row => (
<HitIcon isHit={isHit(row.confidence)} classes={classes} />
),
Expand Down Expand Up @@ -280,14 +297,17 @@ function Body({ definition, id: { ensgId, efoId }, label: { symbol, name } }) {
tooltip: vht.description,
customClass:
classes[
(hypothesesStatus.find(s => s.status === vht.status)
?.styles)
] || null,
hypothesesStatus.find(s => s.status === vht.status)
?.styles || 'hsUndefined'
],
}))
),
[]
),
'label'
// sort alphabetically but move 'PAN-CO' at the end of the list
).sort((a, b) =>
b.label === 'PAN-CO' ? -1 : a.label < b.label ? -1 : 1
);

return (
Expand All @@ -298,8 +318,31 @@ function Body({ definition, id: { ensgId, efoId }, label: { symbol, name } }) {
gutterBottom
className={classes.bold}
>
OTVL biomarker assessment for {symbol}
<Tooltip
title={
<>
This table provides an overarching summary of the
target-disease association in the context of the listed
biomarkers, based on criteria described{' '}
<Link
external
to="http://home.opentargets.org/ppp-documentation"
>
here
</Link>
, as informed by the target performance across the whole
cell line panel. Colour-coding indicates whether a
dependency was expected to be associated with a biomarker
(based on Project SCORE data) and whether it was observed
as such (based on OTVL data).
</>
}
showHelpIcon
>
OTVL biomarker assessment for {symbol}
</Tooltip>
</Typography>

{/** LEGEND */}
<div className={classes.hypotesisLegend}>
<Grid container spacing={4} direction="row">
Expand Down