Skip to content

Commit

Permalink
[Platform] Missing data fixes in Manhattan plot tooltip (#544)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjmcn authored Nov 22, 2024
1 parent f402b97 commit 38f5de8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/sections/src/study/GWASCredibleSets/ManhattanPlot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,18 +210,21 @@ function Tooltip({ data }) {
<TooltipRow label="Finemapping">
{data.finemappingMethod ?? naLabel}
</TooltipRow>
{data.l2Gpredictions?.[0].target
{data.l2Gpredictions?.[0]?.target
? <TooltipRow label="Top L2G">
<Link to={`/target/${data.l2Gpredictions?.[0].target.id}`}>
{data.l2Gpredictions?.[0].target.approvedSymbol}
<Link to={`/target/${data.l2Gpredictions[0].target.id}`}>
{data.l2Gpredictions[0].target.approvedSymbol}
</Link>
</TooltipRow>
: <TooltipRow label="Top L2G">
{naLabel}
</TooltipRow>
}
<TooltipRow label="L2G score">
{data.l2Gpredictions?.[0].score.toFixed(3)}
{data.l2Gpredictions?.[0]?.score != null
? data.l2Gpredictions[0].score.toFixed(3)
: naLabel
}
</TooltipRow>
<TooltipRow label="Credible set size">
{data.locus?.count ?? naLabel}
Expand Down

0 comments on commit 38f5de8

Please sign in to comment.