@vitessce/comparative 4.0.7 → 4.0.9
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.
- package/dist/{GeometryAndMeshXR-C6hkSK75.js → GeometryAndMeshXR-C57GfGLn.js} +1 -1
- package/dist/{ReactNeuroglancer-CwTNjeY2.js → ReactNeuroglancer--CkGQsYV.js} +12 -8
- package/dist/{XREnterButton-h8-XHjHS.js → XREnterButton-DLg_f7IQ.js} +1 -1
- package/dist/{XRSceneComponents-BA3KqbZ8.js → XRSceneComponents-C7yAruTs.js} +1 -1
- package/dist/{XRWrapper-BwByCAw7.js → XRWrapper-D7dzBKv1.js} +2 -2
- package/dist/{deflate-DiO1S3KD.js → deflate-BoaTxqUC.js} +1 -1
- package/dist/{higlass-DlUDuKAR.js → higlass-B2x8w_MH.js} +1 -1
- package/dist/{index-CXpSxI1k.js → index-B3GqvhME.js} +1 -1
- package/dist/{index-BhBtzTli.js → index-CpojjmYg.js} +82609 -80943
- package/dist/{index-NQBX1k0A.js → index-u1iqMslE.js} +4 -4
- package/dist/index.min.js +38 -33
- package/dist/{jpeg-DkJ6-Dos.js → jpeg-9tz6Z9TT.js} +1 -1
- package/dist/{lerc-DmEtbLp8.js → lerc-CTHvQZls.js} +1 -1
- package/dist/{lzw-DzjQwFAL.js → lzw-Cbje5k1f.js} +1 -1
- package/dist/{packbits-DUYDLTQ3.js → packbits-BdmGerdc.js} +1 -1
- package/dist/{raw-C_fR9yV6.js → raw-C6dfmo84.js} +1 -1
- package/dist/{webimage-DX-M5CWL.js → webimage-D7xw5-uR.js} +1 -1
- package/dist/{xrStore-KNRIEBqp.js → xrStore-ClISXCXV.js} +1 -1
- package/dist-tsc/BiomarkerSelect.js +1 -1
- package/dist-tsc/BiomarkerSelect.js.map +1 -1
- package/dist-tsc/ComparativeConfig.d.ts.map +1 -1
- package/dist-tsc/ComparativeConfig.js +38 -14
- package/dist-tsc/ComparativeConfig.js.map +1 -1
- package/dist-tsc/ControlledComparative.js +1 -1
- package/dist-tsc/ControlledComparative.js.map +1 -1
- package/package.json +11 -11
- package/src/BiomarkerSelect.jsx +1 -1
- package/src/ComparativeConfig.jsx +69 -28
- package/src/ControlledComparative.jsx +1 -1
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
VitessceConfig,
|
|
9
9
|
hconcat,
|
|
10
10
|
vconcat,
|
|
11
|
+
CoordinationLevel as CL,
|
|
11
12
|
} from '@vitessce/config';
|
|
12
13
|
import { usePageModeView } from '@vitessce/vit-s';
|
|
13
14
|
import Sticky from 'react-sticky-el';
|
|
@@ -136,8 +137,7 @@ export function generateComparativeConfig(baseUrl, isBiomarkerSelectOnly) {
|
|
|
136
137
|
})
|
|
137
138
|
.addFile({
|
|
138
139
|
fileType: 'anndata.zarr',
|
|
139
|
-
|
|
140
|
-
url: 'https://data-2.vitessce.io/kpmp-atlas-v2/sn-rna-seq/processed/kpmp-june-2026.adata.zarr',
|
|
140
|
+
url: baseUrl,
|
|
141
141
|
coordinationValues: {
|
|
142
142
|
obsType: 'cell',
|
|
143
143
|
featureType: 'gene',
|
|
@@ -154,10 +154,10 @@ export function generateComparativeConfig(baseUrl, isBiomarkerSelectOnly) {
|
|
|
154
154
|
name: 'Subclass L2',
|
|
155
155
|
path: 'obs/subclass_l2',
|
|
156
156
|
},
|
|
157
|
-
{
|
|
157
|
+
/* {
|
|
158
158
|
name: 'Subclass L3',
|
|
159
159
|
path: 'obs/subclass_l3',
|
|
160
|
-
},
|
|
160
|
+
}, */
|
|
161
161
|
/* {
|
|
162
162
|
name: 'Donor ID',
|
|
163
163
|
path: 'obs/patient',
|
|
@@ -222,6 +222,21 @@ export function generateComparativeConfig(baseUrl, isBiomarkerSelectOnly) {
|
|
|
222
222
|
},
|
|
223
223
|
);
|
|
224
224
|
|
|
225
|
+
const [multiObsSetSelectionScope] = vc.addCoordination(
|
|
226
|
+
{
|
|
227
|
+
cType: 'obsSetSelection',
|
|
228
|
+
cScope: '__multi__',
|
|
229
|
+
cValue: null,
|
|
230
|
+
},
|
|
231
|
+
);
|
|
232
|
+
const [singleObsSetSelectionScope] = vc.addCoordination(
|
|
233
|
+
{
|
|
234
|
+
cType: 'obsSetSelection',
|
|
235
|
+
cScope: '__single__',
|
|
236
|
+
cValue: null,
|
|
237
|
+
},
|
|
238
|
+
);
|
|
239
|
+
|
|
225
240
|
if (isBiomarkerSelectOnly) {
|
|
226
241
|
const biomarkerSelect = vc.addView(dataset, 'biomarkerSelectAlt', { uid: 'biomarker-select' });
|
|
227
242
|
|
|
@@ -234,10 +249,14 @@ export function generateComparativeConfig(baseUrl, isBiomarkerSelectOnly) {
|
|
|
234
249
|
vc.layout(biomarkerSelect);
|
|
235
250
|
} else {
|
|
236
251
|
const comparativeHeading = vc.addView(dataset, 'comparativeHeading', { uid: 'comparative-heading' });
|
|
237
|
-
const dualScatterplot = vc.addView(dataset, 'dualScatterplot', { uid: 'scatterplot' }).setProps({
|
|
238
|
-
|
|
252
|
+
const dualScatterplot = vc.addView(dataset, 'dualScatterplot', { uid: 'scatterplot' }).setProps({
|
|
253
|
+
// TODO: this is a hack. adjust the Densmap extent in the pipeline itself
|
|
254
|
+
circleScaleFactor: baseUrl.includes('sn-rna-seq') ? 0.5 : 0.8,
|
|
255
|
+
});
|
|
256
|
+
const obsSets = vc.addView(dataset, 'obsSets', { uid: 'cell-sets' }).setProps({ title: 'Cell Types' });
|
|
257
|
+
const obsSetSelector = vc.addView(dataset, 'singleObsSetSelector', { uid: 'single-cell-set' });
|
|
239
258
|
const sampleSets = vc.addView(dataset, 'sampleSetPairManager', { uid: 'sample-sets' });
|
|
240
|
-
const obsSetSizes = vc.addView(dataset, 'obsSetSizes');
|
|
259
|
+
// const obsSetSizes = vc.addView(dataset, 'obsSetSizes');
|
|
241
260
|
const featureList = vc.addView(dataset, 'featureList');
|
|
242
261
|
const violinPlots = vc.addView(dataset, 'obsSetFeatureValueDistribution', { uid: 'violin-plot' });
|
|
243
262
|
const dotPlot = vc.addView(dataset, 'dotPlot', { uid: 'dot-plot' });
|
|
@@ -255,11 +274,25 @@ export function generateComparativeConfig(baseUrl, isBiomarkerSelectOnly) {
|
|
|
255
274
|
}, { meta: false });
|
|
256
275
|
|
|
257
276
|
|
|
258
|
-
vc.linkViews([dualScatterplot, obsSets,
|
|
259
|
-
vc.linkViewsByObject([dualScatterplot, obsSets,
|
|
277
|
+
vc.linkViews([dualScatterplot, obsSets, featureList, violinPlots, dotPlot, treemap, volcanoPlot, volcanoPlotTable, comparativeHeading, obsSetCompositionBarPlot, featureSetEnrichmentBarPlot, sampleSets], ['sampleType'], ['sample']);
|
|
278
|
+
vc.linkViewsByObject([dualScatterplot, obsSets, featureList, violinPlots, dotPlot, treemap, volcanoPlot, volcanoPlotTable, comparativeHeading, obsSetCompositionBarPlot, featureSetEnrichmentBarPlot, sampleSets], {
|
|
260
279
|
sampleSetSelection: sampleSetScope_caseControl,
|
|
261
280
|
featureSelection: featureSelectionScope,
|
|
262
281
|
}, { meta: false });
|
|
282
|
+
|
|
283
|
+
// Link all EXCEPT the volcano plot and the featureStatsTable to the multi obs set selection scope:
|
|
284
|
+
vc.linkViewsByObject([dualScatterplot, obsSets, featureList, violinPlots, dotPlot, treemap, comparativeHeading, obsSetCompositionBarPlot, featureSetEnrichmentBarPlot, sampleSets], {
|
|
285
|
+
obsSetSelection: multiObsSetSelectionScope,
|
|
286
|
+
}, { meta: false });
|
|
287
|
+
vc.linkViewsByObject([volcanoPlot, volcanoPlotTable], {
|
|
288
|
+
obsSetSelection: singleObsSetSelectionScope,
|
|
289
|
+
}, { meta: false });
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
// TODO: add a dedicated VitessceConfig method to avoid the need for this
|
|
293
|
+
// kind of "private" manipulation of the internals of the instance.
|
|
294
|
+
obsSetSelector.view.coordinationScopes.obsSetSelection = ['__multi__', '__single__'];
|
|
295
|
+
|
|
263
296
|
vc.linkViewsByObject([dualScatterplot, violinPlots, featureList, dotPlot], {
|
|
264
297
|
obsColorEncoding: 'geneSelection',
|
|
265
298
|
featureValueColormap: 'greys',
|
|
@@ -278,7 +311,7 @@ export function generateComparativeConfig(baseUrl, isBiomarkerSelectOnly) {
|
|
|
278
311
|
*/
|
|
279
312
|
|
|
280
313
|
vc.layout(hconcat(
|
|
281
|
-
vconcat(dualScatterplot, comparativeHeading, obsSets,
|
|
314
|
+
vconcat(dualScatterplot, comparativeHeading, obsSets, obsSetSelector),
|
|
282
315
|
vconcat(treemap, dotPlot, obsSetCompositionBarPlot, sampleSets),
|
|
283
316
|
vconcat(volcanoPlotTable, featureList, featureSetEnrichmentBarPlot, violinPlots),
|
|
284
317
|
));
|
|
@@ -342,6 +375,7 @@ export function BiomarkerSelectPageComponent() {
|
|
|
342
375
|
export function ComparativePageComponent() {
|
|
343
376
|
const ComparativeHeading = usePageModeView('comparative-heading');
|
|
344
377
|
const CellSets = usePageModeView('cell-sets');
|
|
378
|
+
const SingleCellSet = usePageModeView('single-cell-set');
|
|
345
379
|
const SampleSets = usePageModeView('sample-sets');
|
|
346
380
|
const DualScatterplot = usePageModeView('scatterplot');
|
|
347
381
|
const ViolinPlot = usePageModeView('violin-plot');
|
|
@@ -430,12 +464,12 @@ export function ComparativePageComponent() {
|
|
|
430
464
|
<DualScatterplot />
|
|
431
465
|
</div>
|
|
432
466
|
</div>
|
|
433
|
-
<div className={clsx('view-row')}>
|
|
467
|
+
{/* <div className={clsx('view-row')}>
|
|
434
468
|
<div className="view-row-left" />
|
|
435
469
|
<div className="view-row-center">
|
|
436
470
|
<Link component="button" href="#" variant="body2">Show analysis details</Link>
|
|
437
471
|
</div>
|
|
438
|
-
</div>
|
|
472
|
+
</div> */}
|
|
439
473
|
<div className={clsx('view-row')}>
|
|
440
474
|
<div className="view-row-left">
|
|
441
475
|
<p className="tabs-description">Use the tabs to switch the visualization rendered below.</p>
|
|
@@ -460,30 +494,30 @@ export function ComparativePageComponent() {
|
|
|
460
494
|
<Treemap />
|
|
461
495
|
</div>
|
|
462
496
|
</div>
|
|
463
|
-
<div className={clsx('view-row')}>
|
|
497
|
+
{/* <div className={clsx('view-row')}>
|
|
464
498
|
<div className="view-row-left" />
|
|
465
499
|
<div className="view-row-center">
|
|
466
500
|
<Link component="button" href="#" variant="body2">Show analysis details</Link>
|
|
467
501
|
</div>
|
|
468
|
-
</div>
|
|
502
|
+
</div> */}
|
|
469
503
|
</>
|
|
470
504
|
) : null}
|
|
471
505
|
{visTab === 1 ? (
|
|
472
506
|
<>
|
|
473
507
|
<div className={clsx('view-row', 'view-row-tall')}>
|
|
474
508
|
<div className="view-row-left">
|
|
475
|
-
<p>This view displays differential expression test results, performed using PyDESeq2 (Muzellec et al. 2023). <br /><br />Tests have only been run when each group contains at least 25 cells and at least three participants. Genes are filtered to those that are expressed above zero counts in at least half of the pseudobulked observations.<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
|
|
509
|
+
<p>This view displays differential expression test results, performed using PyDESeq2 (Muzellec et al. 2023). <br /><br />Tests have only been run when each group contains at least 25 cells and at least three participants. Genes are filtered to those that are expressed above zero counts in at least half of the pseudobulked observations.<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.</p>
|
|
476
510
|
</div>
|
|
477
511
|
<div className="view-row-center">
|
|
478
512
|
<VolcanoPlot />
|
|
479
513
|
</div>
|
|
480
514
|
</div>
|
|
481
|
-
<div className={clsx('view-row')}>
|
|
515
|
+
{/* <div className={clsx('view-row')}>
|
|
482
516
|
<div className="view-row-left" />
|
|
483
517
|
<div className="view-row-center">
|
|
484
518
|
<Link component="button" href="#" variant="body2">Show analysis details</Link>
|
|
485
519
|
</div>
|
|
486
|
-
</div>
|
|
520
|
+
</div> */}
|
|
487
521
|
</>
|
|
488
522
|
) : null}
|
|
489
523
|
{visTab === 2 ? (
|
|
@@ -496,12 +530,12 @@ export function ComparativePageComponent() {
|
|
|
496
530
|
<DotPlot />
|
|
497
531
|
</div>
|
|
498
532
|
</div>
|
|
499
|
-
<div className={clsx('view-row')}>
|
|
533
|
+
{/* <div className={clsx('view-row')}>
|
|
500
534
|
<div className="view-row-left" />
|
|
501
535
|
<div className="view-row-center">
|
|
502
536
|
<Link component="button" href="#" variant="body2">Show analysis details</Link>
|
|
503
537
|
</div>
|
|
504
|
-
</div>
|
|
538
|
+
</div> */}
|
|
505
539
|
</>
|
|
506
540
|
) : null}
|
|
507
541
|
{visTab === 3 ? (
|
|
@@ -514,35 +548,38 @@ export function ComparativePageComponent() {
|
|
|
514
548
|
<ViolinPlot />
|
|
515
549
|
</div>
|
|
516
550
|
</div>
|
|
517
|
-
<div className={clsx('view-row')}>
|
|
551
|
+
{/* <div className={clsx('view-row')}>
|
|
518
552
|
<div className="view-row-left" />
|
|
519
553
|
<div className="view-row-center">
|
|
520
554
|
<Link component="button" href="#" variant="body2">Show analysis details</Link>
|
|
521
555
|
</div>
|
|
522
|
-
</div>
|
|
556
|
+
</div> */}
|
|
523
557
|
</>
|
|
524
558
|
) : null}
|
|
525
559
|
{visTab === 4 ? (
|
|
526
560
|
<>
|
|
527
561
|
<div className={clsx('view-row', 'view-row-tall')}>
|
|
528
562
|
<div className="view-row-left">
|
|
529
|
-
<p>This view displays the results of a cell type composition analysis performed using the ScCODA algorithm (Büttner et al. 2021).
|
|
563
|
+
<p>This view displays the results of a cell type composition analysis performed using the ScCODA algorithm (Büttner et al. 2021).
|
|
564
|
+
<br /><br /> The NS annotation indicates cell types which do not significantly differ in their abundance between the selected conditions.
|
|
565
|
+
<br /><br /> The single outlined bar denotes the automatically-selected reference cell type.
|
|
566
|
+
</p>
|
|
530
567
|
</div>
|
|
531
568
|
<div className="view-row-center">
|
|
532
569
|
<SccodaPlot />
|
|
533
570
|
</div>
|
|
534
571
|
</div>
|
|
535
|
-
<div className={clsx('view-row')}>
|
|
572
|
+
{/* <div className={clsx('view-row')}>
|
|
536
573
|
<div className="view-row-left" />
|
|
537
574
|
<div className="view-row-center">
|
|
538
575
|
<Link component="button" href="#" variant="body2">Show analysis details</Link>
|
|
539
576
|
</div>
|
|
540
|
-
</div>
|
|
577
|
+
</div> */}
|
|
541
578
|
</>
|
|
542
579
|
) : null}
|
|
543
580
|
{/* End plots; Begin tables */}
|
|
544
581
|
|
|
545
|
-
<div className={clsx('view-row')}>
|
|
582
|
+
{/* <div className={clsx('view-row')}>
|
|
546
583
|
<div className="view-row-left">
|
|
547
584
|
<p className="tabs-description">Use the tabs to switch the table rendered below.</p>
|
|
548
585
|
</div>
|
|
@@ -552,7 +589,7 @@ export function ComparativePageComponent() {
|
|
|
552
589
|
<Tab label="Gene Set Enrichment Analysis Results" />
|
|
553
590
|
</Tabs>
|
|
554
591
|
</div>
|
|
555
|
-
</div>
|
|
592
|
+
</div> */}
|
|
556
593
|
{tableTab === 0 ? (
|
|
557
594
|
<>
|
|
558
595
|
<div className={clsx('view-row', 'view-row-tall')}>
|
|
@@ -563,12 +600,12 @@ export function ComparativePageComponent() {
|
|
|
563
600
|
<VolcanoPlotTable />
|
|
564
601
|
</div>
|
|
565
602
|
</div>
|
|
566
|
-
<div className={clsx('view-row')}>
|
|
603
|
+
{/* <div className={clsx('view-row')}>
|
|
567
604
|
<div className="view-row-left" />
|
|
568
605
|
<div className="view-row-center">
|
|
569
606
|
<Link component="button" href="#" variant="body2">Show analysis details</Link>
|
|
570
607
|
</div>
|
|
571
|
-
</div>
|
|
608
|
+
</div> */}
|
|
572
609
|
</>
|
|
573
610
|
) : null}
|
|
574
611
|
{/* Add more tables once implemented (all gene DE results, GSEA results) */}
|
|
@@ -578,6 +615,10 @@ export function ComparativePageComponent() {
|
|
|
578
615
|
<div className="view-row-right">
|
|
579
616
|
<CellSets />
|
|
580
617
|
</div>
|
|
618
|
+
<div className="view-row-right" style={{ marginTop: '10px' }}>
|
|
619
|
+
<SingleCellSet />
|
|
620
|
+
<p style={{ fontSize: '11px', textAlign: 'left' }}>Select a <strong>single</strong> cell type from among the multiple selected above. This selection determines what is shown in the volcano plot and the differential expression table.</p>
|
|
621
|
+
</div>
|
|
581
622
|
{/*
|
|
582
623
|
<div className="view-row-right">
|
|
583
624
|
<SampleSets />
|
|
@@ -26,7 +26,7 @@ import { ComparativePageComponent, generateComparativeConfig } from './Comparati
|
|
|
26
26
|
*/
|
|
27
27
|
export function ControlledComparative(props) {
|
|
28
28
|
const {
|
|
29
|
-
datasetUrl = 'https://data-2.vitessce.io/kpmp-atlas-v2/
|
|
29
|
+
datasetUrl = 'https://data-2.vitessce.io/kpmp-atlas-v2/sc-rna-seq/processed/kpmp-aug-2026.adata.zarr',
|
|
30
30
|
geneSelection,
|
|
31
31
|
setGeneSelection,
|
|
32
32
|
sampleSetSelection,
|