Skip to content

Commit 92d7052

Browse files
committed
Add Embeddings tab to Study View
Add a new Embeddingstab to the Study View, which leverages deck.gl. The implementation uses a randomly generated scatter plot that represent UMAP and PCA projections. The dots can be colored by clinical attributes or tumor types, similar to the plots tab. The plot also allows for selection.
1 parent 3fee52a commit 92d7052

27 files changed

+127735
-2822
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@
9191
"@babel/preset-env": "^7.4.4",
9292
"@babel/preset-react": "^7.0.0",
9393
"@datadog/browser-logs": "^5.28.0",
94+
"@deck.gl/core": "^9.1.12",
95+
"@deck.gl/layers": "^9.1.12",
96+
"@deck.gl/react": "^9.1.12",
97+
"@deck.gl/widgets": "^9.1.12",
9498
"@rollup/plugin-commonjs": "^22.0.0",
9599
"@rollup/plugin-image": "^2.1.1",
96100
"@rollup/plugin-json": "^4.1.0",
@@ -241,7 +245,6 @@
241245
"pathway-mapper": "^2.3.0",
242246
"pdfobject": "^2.0.201604172",
243247
"pegjs": "^0.10.0",
244-
"plotly.js": "^1.42.5",
245248
"pluralize": "^7.0.0",
246249
"postcss-loader": "^1.2.2",
247250
"postcss-url": "^8.0.0",
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"studyId": "msk_chord_2024",
3+
"title": "MSK-CHORD PCA Embedding Data",
4+
"description": "PCA coordinates for sample of patient cases in MSK-CHORD study",
5+
"totalPatients": 10,
6+
"sampleSize": 10,
7+
"data": [
8+
{
9+
"patientId": "P-0000012",
10+
"x": -2.5,
11+
"y": 1.8
12+
},
13+
{
14+
"patientId": "P-0000015",
15+
"x": 3.2,
16+
"y": -1.4
17+
},
18+
{
19+
"patientId": "P-0000036",
20+
"x": -1.1,
21+
"y": 2.7
22+
},
23+
{
24+
"patientId": "P-0000041",
25+
"x": 2.8,
26+
"y": 0.5
27+
},
28+
{
29+
"patientId": "P-0000057",
30+
"x": -0.3,
31+
"y": -2.1
32+
},
33+
{
34+
"patientId": "P-0000058",
35+
"x": 1.9,
36+
"y": 1.2
37+
},
38+
{
39+
"patientId": "P-0000066",
40+
"x": -2.8,
41+
"y": -0.7
42+
},
43+
{
44+
"patientId": "P-0000077",
45+
"x": 0.6,
46+
"y": 2.3
47+
},
48+
{
49+
"patientId": "P-0000081",
50+
"x": 1.4,
51+
"y": -1.8
52+
},
53+
{
54+
"patientId": "P-0000082",
55+
"x": -1.7,
56+
"y": 0.9
57+
}
58+
]
59+
}

0 commit comments

Comments
 (0)