Skip to content

Commit

Permalink
feat: some warnings (#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
d0choa authored Dec 10, 2024
1 parent d786a19 commit a466b01
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Link } from "ui";
function Description(): ReactElement {
return (
<>
Gene assignment based on machine-learning prioritisation of credible set features. Source:{" "}
Gene assignment based on machine-learning prioritisation of credible set features [Feature metrics coming soon]. Source:{" "}
<Link to="https://home.opentargets.org/merged-product-documentation" external>
Open Targets
</Link>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useRef, useEffect } from "react";
import * as PlotLib from "@observablehq/plot";
import { rgb } from "d3";
import { useMeasure } from "@uidotdev/usehooks";
import { Box, Fade } from "@mui/material";
import { Box, Fade, linkClasses } from "@mui/material";
import { grey } from "@mui/material/colors";
import { DataDownloader } from "ui";

Expand Down Expand Up @@ -68,6 +68,10 @@ const getXLabel = (tick: number) => {
return "";
};

const getLicense = (method: string) => {
if (method === "CADD" || method === "PolyPhen") return "Non-commercial (Deprecated)";
}

function Plot({ data, width }) {
const headerRef = useRef();

Expand Down Expand Up @@ -151,6 +155,10 @@ function Plot({ data, width }) {
value: "normalisedScore",
label: "Normalised Score:",
},
license: {
value: d => getLicense(d.method),
label: "License:",
}
},
}),
],
Expand Down

0 comments on commit a466b01

Please sign in to comment.