@vitessce/comparative 0.0.1 → 3.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +4 -18
  3. package/dist/OrbitControls-DWelGoKt.js +6202 -0
  4. package/dist/ReactNeuroglancer-BXqSFHUD.js +43478 -0
  5. package/dist/blosc-DKW2fp0s.js +716 -0
  6. package/dist/chunk-INHXZS53-DiyuLb3Z.js +14 -0
  7. package/dist/deflate-DYtYzuI-.js +10 -0
  8. package/dist/higlass-BBW7WDEo.js +92988 -0
  9. package/dist/index-CMozjas4.js +6178 -0
  10. package/dist/index-Ce5JOk5t.js +283191 -0
  11. package/dist/index-Dmp8XDxB.js +3100 -0
  12. package/dist/index.min.js +43 -0
  13. package/dist/jpeg-BCnMyPcM.js +533 -0
  14. package/dist/lerc-IcvUBGkp.js +1032 -0
  15. package/dist/lz4-D5NbssRf.js +640 -0
  16. package/dist/lzw-BuqKQps7.js +84 -0
  17. package/dist/packbits-D-hnPOOn.js +24 -0
  18. package/dist/pako.esm-D68R8YXe.js +1071 -0
  19. package/dist/raw-CjTblrBX.js +9 -0
  20. package/dist/troika-three-text.esm-DZiaLX4L.js +4192 -0
  21. package/dist/webimage-CAVBEZTP.js +19 -0
  22. package/dist/zstd-DoGJTjDa.js +603 -0
  23. package/dist-tsc/BiomarkerSelect.d.ts +2 -0
  24. package/dist-tsc/BiomarkerSelect.d.ts.map +1 -0
  25. package/dist-tsc/BiomarkerSelect.js +65 -0
  26. package/dist-tsc/ComparativeConfig.d.ts +12 -0
  27. package/dist-tsc/ComparativeConfig.d.ts.map +1 -0
  28. package/dist-tsc/ComparativeConfig.js +326 -0
  29. package/dist-tsc/ControlledComparative.d.ts +30 -0
  30. package/dist-tsc/ControlledComparative.d.ts.map +1 -0
  31. package/dist-tsc/ControlledComparative.js +95 -0
  32. package/dist-tsc/UncontrolledComparative.d.ts +10 -0
  33. package/dist-tsc/UncontrolledComparative.d.ts.map +1 -0
  34. package/dist-tsc/UncontrolledComparative.js +50 -0
  35. package/dist-tsc/index.d.ts +7 -0
  36. package/dist-tsc/index.d.ts.map +1 -0
  37. package/dist-tsc/index.js +14 -0
  38. package/package.json +53 -16
  39. package/src/BiomarkerSelect.jsx +107 -0
  40. package/src/ComparativeConfig.jsx +562 -0
  41. package/src/ControlledComparative.jsx +140 -0
  42. package/src/UncontrolledComparative.jsx +88 -0
  43. package/src/index.js +18 -0
  44. package/dist/index.d.ts +0 -4
  45. package/dist/index.js +0 -9
@@ -0,0 +1,562 @@
1
+ /* eslint-disable max-len */
2
+ /* eslint-disable camelcase */
3
+ /* eslint-disable no-unused-vars */
4
+ /* eslint-disable react-refresh/only-export-components */
5
+ /* eslint-disable jsx-a11y/anchor-is-valid */ // Remove once the "Show analysis details" dropdowns are implemented.
6
+ import React, { useState } from 'react';
7
+ import {
8
+ VitessceConfig,
9
+ hconcat,
10
+ vconcat,
11
+ } from '@vitessce/config';
12
+ import { usePageModeView } from '@vitessce/vit-s';
13
+ import Sticky from 'react-sticky-el';
14
+ import clsx from 'clsx';
15
+ import { Tabs, Tab, Link } from '@vitessce/styles';
16
+
17
+ /**
18
+ * Generate a Vitessce config for comparative visualization.
19
+ * If isBiomarkerSelectOnly is true, only the biomarkerSelect view is included.
20
+ * Otherwise, a config without the biomarkerSelect view is generated.
21
+ * @param {string} baseUrl
22
+ * @param {boolean} isBiomarkerSelectOnly
23
+ * @returns
24
+ */
25
+ export function generateComparativeConfig(baseUrl, isBiomarkerSelectOnly) {
26
+ const vc = new VitessceConfig({ schemaVersion: '1.0.16', name: 'Lake et al.' });
27
+ const dataset = vc.addDataset('lake_et_al').addFile({
28
+ fileType: 'comparisonMetadata.anndata.zarr',
29
+ url: baseUrl,
30
+ options: {
31
+ path: 'uns/comparison_metadata',
32
+ },
33
+ coordinationValues: {
34
+ obsType: 'cell',
35
+ sampleType: 'sample',
36
+ },
37
+ // TODO: remove the below once the biomarkerSelect view is capable of adding them based on the above comparisonMetadata.
38
+ }).addFile({
39
+ fileType: 'comparativeFeatureStats.anndata.zarr',
40
+ url: baseUrl,
41
+ options: {
42
+ metadataPath: 'uns/comparison_metadata',
43
+ indexColumn: 'names',
44
+ pValueColumn: 'pvals_adj',
45
+ foldChangeColumn: 'logfoldchanges',
46
+ // pValueTransformation: 'minuslog10',
47
+ pValueAdjusted: true,
48
+ foldChangeTransformation: 'log2',
49
+ },
50
+ coordinationValues: {
51
+ obsType: 'cell',
52
+ sampleType: 'sample',
53
+ featureType: 'gene',
54
+ },
55
+ // TODO: remove the below once the biomarkerSelect view is capable of adding them based on the above comparisonMetadata.
56
+ }).addFile({
57
+ fileType: 'comparativeObsSetStats.anndata.zarr',
58
+ url: baseUrl,
59
+ options: {
60
+ metadataPath: 'uns/comparison_metadata',
61
+ indexColumn: 'Cell Type',
62
+ interceptExpectedSampleColumn: 'Expected Sample_intercept',
63
+ effectExpectedSampleColumn: 'Expected Sample_effect',
64
+ foldChangeColumn: 'log2-fold change',
65
+ foldChangeTransformation: 'log2',
66
+ isCredibleEffectColumn: 'is_credible_effect',
67
+ },
68
+ coordinationValues: {
69
+ obsType: 'cell',
70
+ sampleType: 'sample',
71
+ },
72
+ // TODO: remove the below once the biomarkerSelect view is capable of adding them based on the above comparisonMetadata.
73
+ })
74
+ .addFile({
75
+ fileType: 'comparativeFeatureSetStats.anndata.zarr',
76
+ url: baseUrl,
77
+ options: {
78
+ metadataPath: 'uns/comparison_metadata',
79
+ indexColumn: 'pathway_name',
80
+ termColumn: 'pathway_term',
81
+ pValueColumn: 'pvals_adj',
82
+ pValueAdjusted: true,
83
+ analysisType: 'pertpy_hypergeometric',
84
+ featureSetLibrary: 'Reactome_2022',
85
+ },
86
+ coordinationValues: {
87
+ obsType: 'cell',
88
+ featureType: 'gene',
89
+ sampleType: 'sample',
90
+ },
91
+ // TODO: remove the below once the biomarkerSelect view is capable of adding them based on the above comparisonMetadata.
92
+ })
93
+ .addFile({
94
+ fileType: 'anndata.zarr',
95
+ url: baseUrl,
96
+ coordinationValues: {
97
+ obsType: 'cell',
98
+ featureType: 'gene',
99
+ featureValueType: 'expression',
100
+ sampleType: 'sample',
101
+ },
102
+ options: {
103
+ obsFeatureMatrix: {
104
+ // "path": "layers/counts",
105
+ // "path": "layers/logcounts",
106
+ path: 'layers/pearson_residuals',
107
+ },
108
+ obsEmbedding: [
109
+ {
110
+ path: 'obsm/X_densmap',
111
+ embeddingType: 'densMAP',
112
+ },
113
+ ],
114
+ obsSets: [
115
+ {
116
+ name: 'Subclass L1',
117
+ path: 'obs/subclass_l1',
118
+ },
119
+ {
120
+ name: 'Subclass L2',
121
+ path: 'obs/subclass_l2',
122
+ },
123
+ {
124
+ name: 'Subclass L3',
125
+ path: 'obs/subclass_l3',
126
+ },
127
+ /* {
128
+ name: 'Donor ID',
129
+ path: 'obs/patient',
130
+ }, */
131
+ /* {
132
+ name: 'Disease',
133
+ path: 'obs/disease',
134
+ },
135
+ {
136
+ name: 'Disease Type',
137
+ path: 'obs/diseasetype',
138
+ },
139
+ {
140
+ name: 'Adjudicated Category',
141
+ path: 'obs/AdjudicatedCategory',
142
+ },
143
+ {
144
+ name: 'Enrollment Category',
145
+ path: 'obs/EnrollmentCategory',
146
+ }, */
147
+ ],
148
+ /* featureLabels: {
149
+ path: 'var/features',
150
+ }, */
151
+ sampleEdges: {
152
+ path: 'obs/specimen',
153
+ },
154
+ },
155
+ })
156
+ .addFile({
157
+ fileType: 'sampleSets.anndata.zarr',
158
+ url: `${baseUrl}/uns/__all__.samples`,
159
+ options: {
160
+ sampleSets: [
161
+ {
162
+ name: 'Adjudicated Category',
163
+ path: 'AdjudicatedCategory',
164
+ },
165
+ {
166
+ name: 'Enrollment Category',
167
+ path: 'EnrollmentCategory',
168
+ },
169
+ ],
170
+ },
171
+ coordinationValues: {
172
+ sampleType: 'sample',
173
+ },
174
+ });
175
+
176
+ const [sampleSetScope_caseControl] = vc.addCoordination(
177
+ {
178
+ cType: 'sampleSetSelection',
179
+ cScope: '__comparison__',
180
+ // cValue: [['Enrollment Category', 'Healthy Reference'], ['Enrollment Category', 'AKI']],
181
+ cValue: null,
182
+ },
183
+ );
184
+ const [featureSelectionScope] = vc.addCoordination(
185
+ {
186
+ cType: 'featureSelection',
187
+ cScope: '__comparison__',
188
+ // cValue: ['UMOD', 'NPHS2'], // , 'ENSG00000074803', 'ENSG00000164825'],
189
+ cValue: null,
190
+ },
191
+ );
192
+
193
+ if (isBiomarkerSelectOnly) {
194
+ const biomarkerSelect = vc.addView(dataset, 'biomarkerSelectAlt', { uid: 'biomarker-select' });
195
+
196
+ vc.linkViews([biomarkerSelect], ['sampleType'], ['sample']);
197
+ vc.linkViewsByObject([biomarkerSelect], {
198
+ sampleSetSelection: sampleSetScope_caseControl,
199
+ featureSelection: featureSelectionScope,
200
+ }, { meta: false });
201
+
202
+ vc.layout(biomarkerSelect);
203
+ } else {
204
+ const comparativeHeading = vc.addView(dataset, 'comparativeHeading', { uid: 'comparative-heading' });
205
+ const dualScatterplot = vc.addView(dataset, 'dualScatterplot', { uid: 'scatterplot' }).setProps({ circleScaleFactor: 0.5 });
206
+ const obsSets = vc.addView(dataset, 'obsSets', { uid: 'cell-sets' });
207
+ const sampleSets = vc.addView(dataset, 'sampleSetPairManager', { uid: 'sample-sets' });
208
+ const obsSetSizes = vc.addView(dataset, 'obsSetSizes');
209
+ const featureList = vc.addView(dataset, 'featureList');
210
+ const violinPlots = vc.addView(dataset, 'obsSetFeatureValueDistribution', { uid: 'violin-plot' });
211
+ const dotPlot = vc.addView(dataset, 'dotPlot', { uid: 'dot-plot' });
212
+ const treemap = vc.addView(dataset, 'treemap', { uid: 'treemap' });
213
+ const volcanoPlot = vc.addView(dataset, 'volcanoPlot', { uid: 'volcano-plot' });
214
+ const volcanoPlotTable = vc.addView(dataset, 'featureStatsTable', { uid: 'volcano-plot-table' });
215
+ const obsSetCompositionBarPlot = vc.addView(dataset, 'obsSetCompositionBarPlot', { uid: 'sccoda-plot' });
216
+ const featureSetEnrichmentBarPlot = vc.addView(dataset, 'featureSetEnrichmentBarPlot', { uid: 'pathways-plot' });
217
+
218
+ vc.linkViewsByObject([dualScatterplot], {
219
+ embeddingType: 'densMAP',
220
+ embeddingContoursVisible: true,
221
+ embeddingPointsVisible: false,
222
+ embeddingObsSetLabelsVisible: true,
223
+ }, { meta: false });
224
+
225
+
226
+ vc.linkViews([dualScatterplot, obsSets, obsSetSizes, featureList, violinPlots, dotPlot, treemap, volcanoPlot, volcanoPlotTable, comparativeHeading, obsSetCompositionBarPlot, featureSetEnrichmentBarPlot, sampleSets], ['sampleType'], ['sample']);
227
+ vc.linkViewsByObject([dualScatterplot, obsSets, obsSetSizes, featureList, violinPlots, dotPlot, treemap, volcanoPlot, volcanoPlotTable, comparativeHeading, obsSetCompositionBarPlot, featureSetEnrichmentBarPlot, sampleSets], {
228
+ sampleSetSelection: sampleSetScope_caseControl,
229
+ featureSelection: featureSelectionScope,
230
+ }, { meta: false });
231
+ vc.linkViewsByObject([dualScatterplot, violinPlots, featureList, dotPlot], {
232
+ obsColorEncoding: 'geneSelection',
233
+ featureValueColormap: 'greys',
234
+ featureValueColormapRange: [0, 0.25],
235
+ featureAggregationStrategy: null,
236
+ }, { meta: false });
237
+ vc.linkViewsByObject([obsSets], {
238
+ obsSetExpansion: [['Subclass L1']],
239
+ }, { meta: false });
240
+
241
+ /*
242
+ const [donorSelectionScope, cellTypeSelectionScope] = vc.addCoordination(
243
+ { cType: 'obsSetSelection', cScope: 'donor', cValue: [['Donor ID', '3593'], ['Donor ID', '3535']] },
244
+ { cType: 'obsSetSelection', cScope: 'cellType', cValue: [['Cell Type', 'leukocyte'], ['Cell Type', 'kidney collecting duct intercalated cell']] },
245
+ );
246
+ */
247
+
248
+ vc.layout(hconcat(
249
+ vconcat(dualScatterplot, comparativeHeading, obsSets, obsSetSizes),
250
+ vconcat(treemap, dotPlot, obsSetCompositionBarPlot, sampleSets),
251
+ vconcat(volcanoPlotTable, featureList, featureSetEnrichmentBarPlot, violinPlots),
252
+ ));
253
+ }
254
+ const configJSON = vc.toJSON();
255
+ return configJSON;
256
+ }
257
+
258
+ export function BiomarkerSelectPageComponent() {
259
+ const BiomarkerSelect = usePageModeView('biomarker-select');
260
+
261
+ return (
262
+ <>
263
+ <style>{`
264
+ .view-row {
265
+ width: 100%;
266
+ display: flex;
267
+ flex-direction: row;
268
+ }
269
+ .view-row-left {
270
+ width: ${(15 / 85) * 100}%;
271
+ padding: 10px;
272
+ }
273
+ .view-row-left p {
274
+ font-size: 12px;
275
+ margin-top: 20px;
276
+ }
277
+ .view-row-left p.tabs-description {
278
+ margin-top: 0px;
279
+ }
280
+ .view-row-center {
281
+ width: ${(70 / 85) * 100}%;
282
+ }
283
+ `}
284
+ </style>
285
+ {/* <div style={{ width: '100%' }}>
286
+ <div style={{ width: '70%', marginLeft: '15%' }}>
287
+ <h1>Comparative visualization of single-nucleus data</h1>
288
+ </div>
289
+ </div> */}
290
+
291
+ <div style={{ width: '100%', display: 'flex', flexDirection: 'row' }}>
292
+ <div style={{ width: '85%' }}>
293
+ {/* <div style={{ width: `${(70 / 85) * 100}%`, marginLeft: `${(15 / 85) * 100}%` }}>
294
+ <Sticky stickyStyle={{ zIndex: 1 }} stickyClassName="stuck-comparative-heading">
295
+ <ComparativeHeading />
296
+ </Sticky>
297
+ </div> */}
298
+ <div className={clsx('view-row')}>
299
+ <div className="view-row-left" />
300
+ <div className="view-row-center">
301
+ <BiomarkerSelect />
302
+ </div>
303
+ </div>
304
+ </div>
305
+ </div>
306
+ </>
307
+ );
308
+ }
309
+
310
+ export function ComparativePageComponent() {
311
+ const ComparativeHeading = usePageModeView('comparative-heading');
312
+ const CellSets = usePageModeView('cell-sets');
313
+ const SampleSets = usePageModeView('sample-sets');
314
+ const DualScatterplot = usePageModeView('scatterplot');
315
+ const ViolinPlot = usePageModeView('violin-plot');
316
+ const DotPlot = usePageModeView('dot-plot');
317
+ const Treemap = usePageModeView('treemap');
318
+ const VolcanoPlot = usePageModeView('volcano-plot');
319
+ const VolcanoPlotTable = usePageModeView('volcano-plot-table');
320
+ const SccodaPlot = usePageModeView('sccoda-plot');
321
+ const PathwaysPlot = usePageModeView('pathways-plot');
322
+
323
+ const [visTab, setVisTab] = useState(0);
324
+ const [tableTab, setTableTab] = useState(0);
325
+
326
+ return (
327
+ <>
328
+ <style>{`
329
+ h1, h2, h3, h4, h5, h6 {
330
+ font-family: sans-serif;
331
+ }
332
+ h1 {
333
+ font-weight: normal;
334
+ }
335
+ h2 {
336
+ font-size: 36px;
337
+ }
338
+ h3 {
339
+ font-size: 28px;
340
+ }
341
+ .stuck-comparative-heading {
342
+ background-color: rgba(255, 255, 255, 0.7);
343
+ }
344
+ .stuck-comparative-heading h2 {
345
+ font-size: 16px;
346
+ }
347
+ .stuck-comparative-heading h3 {
348
+ font-size: 14px;
349
+ }
350
+ .view-row {
351
+ width: 100%;
352
+ display: flex;
353
+ flex-direction: row;
354
+ }
355
+ .view-row-short {
356
+ height: 300px;
357
+ }
358
+ .view-row-tall {
359
+ height: 500px;
360
+ }
361
+ .view-row-left {
362
+ width: ${(15 / 85) * 100}%;
363
+ padding: 10px;
364
+ }
365
+ .view-row-left p {
366
+ font-size: 12px;
367
+ margin-top: 20px;
368
+ }
369
+ .view-row-left p.tabs-description {
370
+ margin-top: 0px;
371
+ }
372
+ .view-row-center {
373
+ width: ${(70 / 85) * 100}%;
374
+ }
375
+ .view-row-right > div {
376
+ max-height: 100vh;
377
+ }
378
+ `}
379
+ </style>
380
+ {/* <div style={{ width: '100%' }}>
381
+ <div style={{ width: '70%', marginLeft: '15%' }}>
382
+ <h1>Comparative visualization of single-nucleus data</h1>
383
+ </div>
384
+ </div> */}
385
+
386
+ <div style={{ width: '100%', display: 'flex', flexDirection: 'row' }}>
387
+ <div style={{ width: '85%' }}>
388
+ {/* <div style={{ width: `${(70 / 85) * 100}%`, marginLeft: `${(15 / 85) * 100}%` }}>
389
+ <Sticky stickyStyle={{ zIndex: 1 }} stickyClassName="stuck-comparative-heading">
390
+ <ComparativeHeading />
391
+ </Sticky>
392
+ </div> */}
393
+ <div className={clsx('view-row', 'view-row-tall')}>
394
+ <div className="view-row-left">
395
+ <p>This view contains contour scatterplots which display the results of a density-preserving dimensionality reduction (Narayan et al. 2021). Contour opacities correspond to the shown percentile thresholds.</p>
396
+ </div>
397
+ <div className="view-row-center">
398
+ <DualScatterplot />
399
+ </div>
400
+ </div>
401
+ <div className={clsx('view-row')}>
402
+ <div className="view-row-left" />
403
+ <div className="view-row-center">
404
+ <Link component="button" href="#" variant="body2">Show analysis details</Link>
405
+ </div>
406
+ </div>
407
+ <div className={clsx('view-row')}>
408
+ <div className="view-row-left">
409
+ <p className="tabs-description">Use the tabs to switch the visualization rendered below.</p>
410
+ </div>
411
+ <div className="view-row-center">
412
+ <Tabs value={visTab} onChange={(event, newValue) => setVisTab(newValue)} aria-label="Switch visualization tabs">
413
+ <Tab label="Treemap Plot" />
414
+ <Tab label="Volcano Plot" />
415
+ <Tab label="Dot Plot" />
416
+ <Tab label="Violin Plot" />
417
+ <Tab label="Cell Type Composition Bar Plot" />
418
+ </Tabs>
419
+ </div>
420
+ </div>
421
+ {visTab === 0 ? (
422
+ <>
423
+ <div className={clsx('view-row', 'view-row-short')}>
424
+ <div className="view-row-left">
425
+ <p>This view contains a treemap visualization to communicate cell type composition in each of the selected sample groups.</p>
426
+ </div>
427
+ <div className="view-row-center">
428
+ <Treemap />
429
+ </div>
430
+ </div>
431
+ <div className={clsx('view-row')}>
432
+ <div className="view-row-left" />
433
+ <div className="view-row-center">
434
+ <Link component="button" href="#" variant="body2">Show analysis details</Link>
435
+ </div>
436
+ </div>
437
+ </>
438
+ ) : null}
439
+ {visTab === 1 ? (
440
+ <>
441
+ <div className={clsx('view-row', 'view-row-tall')}>
442
+ <div className="view-row-left">
443
+ <p>This view displays differential expression test results, performed using the rank_genes_groups function from Scanpy (Wolf et al. 2018) with method &quot;wilcoxon&quot;. <br /><br />The arrows on the bottom left and bottom right denote the direction of the effect. Click a point in the plot to select the corresponding gene. <br /><br />Note that differential expression tests have been run for each cell type separately, so the each gene can appear multiple times (once per cell type). If there are too many points on the plot, cell types can be selected to filter the points.</p>
444
+ </div>
445
+ <div className="view-row-center">
446
+ <VolcanoPlot />
447
+ </div>
448
+ </div>
449
+ <div className={clsx('view-row')}>
450
+ <div className="view-row-left" />
451
+ <div className="view-row-center">
452
+ <Link component="button" href="#" variant="body2">Show analysis details</Link>
453
+ </div>
454
+ </div>
455
+ </>
456
+ ) : null}
457
+ {visTab === 2 ? (
458
+ <>
459
+ <div className={clsx('view-row', 'view-row-tall')}>
460
+ <div className="view-row-left">
461
+ <p>This dot plot view displays gene expression values per cell type and sample group for the selected biomarkers.</p>
462
+ </div>
463
+ <div className="view-row-center">
464
+ <DotPlot />
465
+ </div>
466
+ </div>
467
+ <div className={clsx('view-row')}>
468
+ <div className="view-row-left" />
469
+ <div className="view-row-center">
470
+ <Link component="button" href="#" variant="body2">Show analysis details</Link>
471
+ </div>
472
+ </div>
473
+ </>
474
+ ) : null}
475
+ {visTab === 3 ? (
476
+ <>
477
+ <div className={clsx('view-row', 'view-row-tall')}>
478
+ <div className="view-row-left">
479
+ <p>This violin plot view displays gene expression values per cell type and sample group for the selected biomarker.</p>
480
+ </div>
481
+ <div className="view-row-center">
482
+ <ViolinPlot />
483
+ </div>
484
+ </div>
485
+ <div className={clsx('view-row')}>
486
+ <div className="view-row-left" />
487
+ <div className="view-row-center">
488
+ <Link component="button" href="#" variant="body2">Show analysis details</Link>
489
+ </div>
490
+ </div>
491
+ </>
492
+ ) : null}
493
+ {visTab === 4 ? (
494
+ <>
495
+ <div className={clsx('view-row', 'view-row-tall')}>
496
+ <div className="view-row-left">
497
+ <p>This view displays the results of a cell type composition analysis performed using the ScCODA algorithm (Büttner et al. 2021). Cell types with significantly different composition between the selected sample groups are displayed opaque while not-signficant results are displayed with transparent bars. The single outlined bar denotes the automatically-selected reference cell type.</p>
498
+ </div>
499
+ <div className="view-row-center">
500
+ <SccodaPlot />
501
+ </div>
502
+ </div>
503
+ <div className={clsx('view-row')}>
504
+ <div className="view-row-left" />
505
+ <div className="view-row-center">
506
+ <Link component="button" href="#" variant="body2">Show analysis details</Link>
507
+ </div>
508
+ </div>
509
+ </>
510
+ ) : null}
511
+ {/* End plots; Begin tables */}
512
+
513
+ <div className={clsx('view-row')}>
514
+ <div className="view-row-left">
515
+ <p className="tabs-description">Use the tabs to switch the table rendered below.</p>
516
+ </div>
517
+ <div className="view-row-center">
518
+ <Tabs value={tableTab} onChange={(event, newValue) => setTableTab(newValue)} aria-label="Switch table tabs">
519
+ <Tab label="Differential Expression Results for Selected Gene" />
520
+ <Tab label="Differential Expression Results for All Genes" />
521
+ <Tab label="Gene Set Enrichment Analysis Results" />
522
+ </Tabs>
523
+ </div>
524
+ </div>
525
+ {tableTab === 0 ? (
526
+ <>
527
+ <div className={clsx('view-row', 'view-row-tall')}>
528
+ <div className="view-row-left">
529
+ <p>This view displays differential expression test results in tabular form. Click a row in the table to select the corresponding gene.</p>
530
+ </div>
531
+ <div className="view-row-center">
532
+ <VolcanoPlotTable />
533
+ </div>
534
+ </div>
535
+ <div className={clsx('view-row')}>
536
+ <div className="view-row-left" />
537
+ <div className="view-row-center">
538
+ <Link component="button" href="#" variant="body2">Show analysis details</Link>
539
+ </div>
540
+ </div>
541
+ </>
542
+ ) : null}
543
+ {/* Add more tables once implemented (all gene DE results, GSEA results) */}
544
+ </div>
545
+ <div style={{ width: '14%', marginTop: '114px', marginBottom: '100px' }}>
546
+ <Sticky>
547
+ <div className="view-row-right">
548
+ <CellSets />
549
+ </div>
550
+ {/*
551
+ <div className="view-row-right">
552
+ <SampleSets />
553
+ </div>
554
+ */}
555
+ </Sticky>
556
+ </div>
557
+
558
+ </div>
559
+
560
+ </>
561
+ );
562
+ }