@vitessce/statistical-plots 3.6.7 → 3.6.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/{deflate-CIQ8HfQ4.js → deflate-DFg7j2aM.js} +1 -1
- package/dist/{index-DKYKw8DX.js → index-Dhdy8_KV.js} +860 -638
- package/dist/index.js +1 -1
- package/dist/{jpeg-L5T74jDu.js → jpeg-BAsU3Uj1.js} +1 -1
- package/dist/{lerc-xXmKz_nL.js → lerc-Bs40GmLw.js} +1 -1
- package/dist/{lzw-D-d5b3_9.js → lzw--6K-CH9V.js} +1 -1
- package/dist/{packbits-EdeFNk-p.js → packbits-DIcMoiDr.js} +1 -1
- package/dist/{raw-B0E5tGhb.js → raw-TJbs5T8I.js} +1 -1
- package/dist/{webimage-Dr7tpGET.js → webimage-DcmYEYr-.js} +1 -1
- package/dist-tsc/CellSetCompositionBarPlotSubscriber.d.ts.map +1 -1
- package/dist-tsc/CellSetCompositionBarPlotSubscriber.js +6 -3
- package/dist-tsc/CellSetExpressionPlotSubscriber.d.ts.map +1 -1
- package/dist-tsc/CellSetExpressionPlotSubscriber.js +16 -8
- package/dist-tsc/CellSetSizesPlotSubscriber.d.ts.map +1 -1
- package/dist-tsc/CellSetSizesPlotSubscriber.js +5 -2
- package/dist-tsc/DotPlotSubscriber.d.ts.map +1 -1
- package/dist-tsc/DotPlotSubscriber.js +17 -7
- package/dist-tsc/ExpressionHistogramSubscriber.d.ts.map +1 -1
- package/dist-tsc/ExpressionHistogramSubscriber.js +9 -3
- package/dist-tsc/FeatureBarPlotSubscriber.d.ts.map +1 -1
- package/dist-tsc/FeatureBarPlotSubscriber.js +11 -4
- package/dist-tsc/FeatureSetEnrichmentBarPlotSubscriber.d.ts.map +1 -1
- package/dist-tsc/FeatureSetEnrichmentBarPlotSubscriber.js +5 -2
- package/dist-tsc/FeatureStatsTableSubscriber.d.ts.map +1 -1
- package/dist-tsc/FeatureStatsTableSubscriber.js +5 -2
- package/dist-tsc/TreemapSubscriber.d.ts.map +1 -1
- package/dist-tsc/TreemapSubscriber.js +11 -5
- package/dist-tsc/VolcanoPlotSubscriber.d.ts.map +1 -1
- package/dist-tsc/VolcanoPlotSubscriber.js +7 -2
- package/package.json +8 -8
- package/src/CellSetCompositionBarPlotSubscriber.js +9 -2
- package/src/CellSetExpressionPlotSubscriber.js +30 -8
- package/src/CellSetSizesPlotSubscriber.js +5 -1
- package/src/DotPlotSubscriber.js +30 -7
- package/src/ExpressionHistogramSubscriber.js +13 -3
- package/src/FeatureBarPlotSubscriber.js +15 -4
- package/src/FeatureSetEnrichmentBarPlotSubscriber.js +8 -1
- package/src/FeatureStatsTableSubscriber.js +8 -1
- package/src/TreemapSubscriber.js +18 -4
- package/src/VolcanoPlotSubscriber.js +12 -1
package/src/DotPlotSubscriber.js
CHANGED
@@ -70,35 +70,57 @@ export function DotPlotSubscriber(props) {
|
|
70
70
|
const isStratified = Array.isArray(sampleSetSelection) && sampleSetSelection.length > 1;
|
71
71
|
|
72
72
|
// Get data from loaders using the data hooks.
|
73
|
-
|
74
|
-
|
73
|
+
const [
|
74
|
+
// eslint-disable-next-line no-unused-vars
|
75
|
+
expressionData, loadedFeatureSelection, featureSelectionStatus, featureSelectionErrors,
|
76
|
+
] = useFeatureSelection(
|
75
77
|
loaders, dataset, false, geneSelection,
|
76
78
|
{ obsType, featureType, featureValueType },
|
77
79
|
);
|
78
80
|
// TODO: support multiple feature labels using featureLabelsType coordination values.
|
79
|
-
const [
|
81
|
+
const [
|
82
|
+
{ featureLabelsMap }, featureLabelsStatus, featureLabelsUrl, featureLabelsError,
|
83
|
+
] = useFeatureLabelsData(
|
80
84
|
loaders, dataset, false, {}, {},
|
81
85
|
{ featureType },
|
82
86
|
);
|
83
|
-
const [
|
87
|
+
const [
|
88
|
+
{ obsIndex }, matrixIndicesStatus, matrixIndicesUrl, matrixIndicesError,
|
89
|
+
] = useObsFeatureMatrixIndices(
|
84
90
|
loaders, dataset, false,
|
85
91
|
{ obsType, featureType, featureValueType },
|
86
92
|
);
|
87
|
-
const [
|
93
|
+
const [
|
94
|
+
{ obsSets: cellSets }, obsSetsStatus, obsSetsUrl, obsSetsError,
|
95
|
+
] = useObsSetsData(
|
88
96
|
loaders, dataset, true, {}, {},
|
89
97
|
{ obsType },
|
90
98
|
);
|
91
99
|
|
92
|
-
const [
|
100
|
+
const [
|
101
|
+
{ sampleSets }, sampleSetsStatus, sampleSetsUrl, sampleSetsError,
|
102
|
+
] = useSampleSetsData(
|
93
103
|
loaders, dataset, false, {}, {},
|
94
104
|
{ sampleType },
|
95
105
|
);
|
96
106
|
|
97
|
-
const [
|
107
|
+
const [
|
108
|
+
{ sampleEdges }, sampleEdgesStatus, sampleEdgesUrl, sampleEdgesError,
|
109
|
+
] = useSampleEdgesData(
|
98
110
|
loaders, dataset, false, {}, {},
|
99
111
|
{ obsType, sampleType },
|
100
112
|
);
|
101
113
|
|
114
|
+
// Consolidate error values from data hooks.
|
115
|
+
const errors = [
|
116
|
+
...featureSelectionErrors,
|
117
|
+
featureLabelsError,
|
118
|
+
matrixIndicesError,
|
119
|
+
obsSetsError,
|
120
|
+
sampleSetsError,
|
121
|
+
sampleEdgesError,
|
122
|
+
];
|
123
|
+
|
102
124
|
const isReady = useReady([
|
103
125
|
featureSelectionStatus,
|
104
126
|
matrixIndicesStatus,
|
@@ -135,6 +157,7 @@ export function DotPlotSubscriber(props) {
|
|
135
157
|
theme={theme}
|
136
158
|
isReady={isReady}
|
137
159
|
helpText={helpText}
|
160
|
+
errors={errors}
|
138
161
|
options={(
|
139
162
|
<CellSetExpressionPlotOptions
|
140
163
|
featureValueTransform={featureValueTransform}
|
@@ -58,16 +58,25 @@ export function ExpressionHistogramSubscriber(props) {
|
|
58
58
|
|
59
59
|
// Get data from loaders using the data hooks.
|
60
60
|
const [
|
61
|
-
{ obsIndex, featureIndex, obsFeatureMatrix },
|
61
|
+
{ obsIndex, featureIndex, obsFeatureMatrix },
|
62
|
+
matrixStatus, matrixUrls, matrixError,
|
62
63
|
] = useObsFeatureMatrixData(
|
63
64
|
loaders, dataset, true, {}, {},
|
64
65
|
{ obsType, featureType, featureValueType },
|
65
66
|
);
|
66
|
-
|
67
|
-
|
67
|
+
const [
|
68
|
+
// eslint-disable-next-line no-unused-vars
|
69
|
+
expressionData, loadedFeatureSelection, featureSelectionStatus, featureSelectionErrors,
|
70
|
+
] = useFeatureSelection(
|
68
71
|
loaders, dataset, false, geneSelection,
|
69
72
|
{ obsType, featureType, featureValueType },
|
70
73
|
);
|
74
|
+
// Consolidate error values from data hooks.
|
75
|
+
const errors = [
|
76
|
+
matrixError,
|
77
|
+
...featureSelectionErrors,
|
78
|
+
];
|
79
|
+
|
71
80
|
const isReady = useReady([
|
72
81
|
matrixStatus,
|
73
82
|
featureSelectionStatus,
|
@@ -129,6 +138,7 @@ export function ExpressionHistogramSubscriber(props) {
|
|
129
138
|
theme={theme}
|
130
139
|
isReady={isReady}
|
131
140
|
helpText={helpText}
|
141
|
+
errors={errors}
|
132
142
|
>
|
133
143
|
<div ref={containerRef} className={classes.vegaContainer}>
|
134
144
|
<ExpressionHistogram
|
@@ -56,22 +56,32 @@ export function FeatureBarPlotSubscriber(props) {
|
|
56
56
|
const [width, height, containerRef] = useGridItemSize();
|
57
57
|
|
58
58
|
// Get data from loaders using the data hooks.
|
59
|
-
|
60
|
-
|
59
|
+
const [
|
60
|
+
// eslint-disable-next-line no-unused-vars
|
61
|
+
expressionData, loadedFeatureSelection, featureSelectionStatus, featureSelectionErrors,
|
62
|
+
] = useFeatureSelection(
|
61
63
|
loaders, dataset, false, geneSelection,
|
62
64
|
{ obsType, featureType, featureValueType },
|
63
65
|
);
|
64
66
|
// TODO: support multiple feature labels using featureLabelsType coordination values.
|
65
|
-
const [
|
67
|
+
const [
|
68
|
+
{ featureLabelsMap }, featureLabelsStatus, featureLabelsUrls, featureLabelsError,
|
69
|
+
] = useFeatureLabelsData(
|
66
70
|
loaders, dataset, false, {}, {},
|
67
71
|
{ featureType },
|
68
72
|
);
|
69
73
|
const [
|
70
|
-
{ obsIndex }, matrixIndicesStatus, matrixIndicesUrls,
|
74
|
+
{ obsIndex }, matrixIndicesStatus, matrixIndicesUrls, matrixIndicesError,
|
71
75
|
] = useObsFeatureMatrixIndices(
|
72
76
|
loaders, dataset, false,
|
73
77
|
{ obsType, featureType, featureValueType },
|
74
78
|
);
|
79
|
+
// Consolidate error values from data hooks.
|
80
|
+
const errors = [
|
81
|
+
...featureSelectionErrors,
|
82
|
+
featureLabelsError,
|
83
|
+
matrixIndicesError,
|
84
|
+
];
|
75
85
|
const isReady = useReady([
|
76
86
|
featureSelectionStatus,
|
77
87
|
matrixIndicesStatus,
|
@@ -128,6 +138,7 @@ export function FeatureBarPlotSubscriber(props) {
|
|
128
138
|
theme={theme}
|
129
139
|
isReady={isReady}
|
130
140
|
helpText={helpText}
|
141
|
+
errors={errors}
|
131
142
|
>
|
132
143
|
<div ref={containerRef} className={classes.vegaContainer}>
|
133
144
|
{expressionArr ? (
|
@@ -98,13 +98,19 @@ export function FeatureSetEnrichmentBarPlotSubscriber(props) {
|
|
98
98
|
const rawSampleSetSelection = useRawSetPaths(sampleSetsColumnNameMapping, sampleSetSelection);
|
99
99
|
const rawObsSetSelection = useRawSetPaths(obsSetsColumnNameMapping, obsSetSelection);
|
100
100
|
|
101
|
-
const [
|
101
|
+
const [
|
102
|
+
{ featureSetStats }, featureSetStatsStatus, featureSetStatsUrls, featureSetStatsError,
|
103
|
+
] = useFeatureSetStatsData(
|
102
104
|
loaders, dataset, false,
|
103
105
|
{ obsType, featureType, sampleType },
|
104
106
|
// These volcanoOptions are passed to ObsSetStatsAnndataLoader.loadMulti():
|
105
107
|
{ sampleSetSelection: rawSampleSetSelection, obsSetSelection: rawObsSetSelection },
|
106
108
|
);
|
107
109
|
|
110
|
+
const errors = [
|
111
|
+
featureSetStatsError,
|
112
|
+
];
|
113
|
+
|
108
114
|
const isReady = useReady([
|
109
115
|
featureSetStatsStatus,
|
110
116
|
]);
|
@@ -139,6 +145,7 @@ export function FeatureSetEnrichmentBarPlotSubscriber(props) {
|
|
139
145
|
theme={theme}
|
140
146
|
isReady={isReady}
|
141
147
|
helpText={helpText}
|
148
|
+
errors={errors}
|
142
149
|
>
|
143
150
|
<div ref={containerRef} className={classes.vegaContainer}>
|
144
151
|
{featureSetStats ? (
|
@@ -86,13 +86,19 @@ export function FeatureStatsTableSubscriber(props) {
|
|
86
86
|
const rawSampleSetSelection = useRawSetPaths(sampleSetsColumnNameMapping, sampleSetSelection);
|
87
87
|
const rawObsSetSelection = useRawSetPaths(obsSetsColumnNameMapping, obsSetSelection);
|
88
88
|
|
89
|
-
const [
|
89
|
+
const [
|
90
|
+
{ featureStats }, featureStatsStatus, featureStatsUrls, featureStatsError,
|
91
|
+
] = useFeatureStatsData(
|
90
92
|
loaders, dataset, false,
|
91
93
|
{ obsType, featureType, sampleType },
|
92
94
|
// These volcanoOptions are passed to FeatureStatsAnndataLoader.loadMulti():
|
93
95
|
{ sampleSetSelection: rawSampleSetSelection, obsSetSelection: rawObsSetSelection },
|
94
96
|
);
|
95
97
|
|
98
|
+
const errors = [
|
99
|
+
featureStatsError,
|
100
|
+
];
|
101
|
+
|
96
102
|
const isReady = useReady([
|
97
103
|
featureStatsStatus,
|
98
104
|
]);
|
@@ -104,6 +110,7 @@ export function FeatureStatsTableSubscriber(props) {
|
|
104
110
|
theme={theme}
|
105
111
|
isReady={isReady}
|
106
112
|
helpText={helpText}
|
113
|
+
errors={errors}
|
107
114
|
withPadding={false}
|
108
115
|
>
|
109
116
|
{featureStats ? (
|
package/src/TreemapSubscriber.js
CHANGED
@@ -88,16 +88,20 @@ export function TreemapSubscriber(props) {
|
|
88
88
|
const [width, height, containerRef] = useGridItemSize();
|
89
89
|
|
90
90
|
// TODO: how to deal with multimodal cases (multiple obsIndex, one per modality)?
|
91
|
-
const [
|
91
|
+
const [
|
92
|
+
{ obsIndex }, matrixIndicesStatus, matrixIndicesUrls, matrixIndicesError,
|
93
|
+
] = useObsFeatureMatrixIndices(
|
92
94
|
loaders, dataset, false,
|
93
95
|
{ obsType, featureType, featureValueType },
|
94
96
|
);
|
95
|
-
const [{ obsSets }, obsSetsStatus, obsSetsUrls] = useObsSetsData(
|
97
|
+
const [{ obsSets }, obsSetsStatus, obsSetsUrls, obsSetsError] = useObsSetsData(
|
96
98
|
loaders, dataset, true, {}, {},
|
97
99
|
{ obsType },
|
98
100
|
);
|
99
101
|
|
100
|
-
const [
|
102
|
+
const [
|
103
|
+
{ sampleIndex, sampleSets }, sampleSetsStatus, sampleSetsUrls, sampleSetsError,
|
104
|
+
] = useSampleSetsData(
|
101
105
|
loaders,
|
102
106
|
dataset,
|
103
107
|
// TODO: support `false`, i.e., configurations in which
|
@@ -108,7 +112,9 @@ export function TreemapSubscriber(props) {
|
|
108
112
|
{ sampleType },
|
109
113
|
);
|
110
114
|
|
111
|
-
const [
|
115
|
+
const [
|
116
|
+
{ sampleEdges }, sampleEdgesStatus, sampleEdgesUrls, sampleEdgesError,
|
117
|
+
] = useSampleEdgesData(
|
112
118
|
loaders,
|
113
119
|
dataset,
|
114
120
|
// TODO: support `false`, i.e., configurations in which
|
@@ -119,6 +125,13 @@ export function TreemapSubscriber(props) {
|
|
119
125
|
{ obsType, sampleType },
|
120
126
|
);
|
121
127
|
|
128
|
+
const errors = [
|
129
|
+
matrixIndicesError,
|
130
|
+
obsSetsError,
|
131
|
+
sampleSetsError,
|
132
|
+
sampleEdgesError,
|
133
|
+
];
|
134
|
+
|
122
135
|
const isReady = useReady([
|
123
136
|
matrixIndicesStatus,
|
124
137
|
obsSetsStatus,
|
@@ -237,6 +250,7 @@ export function TreemapSubscriber(props) {
|
|
237
250
|
theme={theme}
|
238
251
|
isReady={isReady}
|
239
252
|
helpText={helpText}
|
253
|
+
errors={errors}
|
240
254
|
withPadding={false}
|
241
255
|
options={(
|
242
256
|
<TreemapOptions
|
@@ -95,12 +95,22 @@ export function VolcanoPlotSubscriber(props) {
|
|
95
95
|
const rawSampleSetSelection = useRawSetPaths(sampleSetsColumnNameMapping, sampleSetSelection);
|
96
96
|
const rawObsSetSelection = useRawSetPaths(obsSetsColumnNameMapping, obsSetSelection);
|
97
97
|
|
98
|
-
|
98
|
+
// Get data from loaders using the data hooks.
|
99
|
+
const [
|
100
|
+
{ featureStats },
|
101
|
+
featureStatsStatus,
|
102
|
+
featureStatsUrls,
|
103
|
+
featureStatsError,
|
104
|
+
] = useFeatureStatsData(
|
99
105
|
loaders, dataset, false,
|
100
106
|
{ obsType, featureType, sampleType },
|
101
107
|
// These volcanoOptions are passed to FeatureStatsAnndataLoader.loadMulti():
|
102
108
|
{ sampleSetSelection: rawSampleSetSelection, obsSetSelection: rawObsSetSelection },
|
103
109
|
);
|
110
|
+
// Consolidate error values from data hooks.
|
111
|
+
const errors = [
|
112
|
+
featureStatsError,
|
113
|
+
];
|
104
114
|
|
105
115
|
const isReady = useReady([
|
106
116
|
featureStatsStatus,
|
@@ -117,6 +127,7 @@ export function VolcanoPlotSubscriber(props) {
|
|
117
127
|
theme={theme}
|
118
128
|
isReady={isReady}
|
119
129
|
helpText={helpText}
|
130
|
+
errors={errors}
|
120
131
|
options={(
|
121
132
|
<VolcanoPlotOptions
|
122
133
|
obsType={obsType}
|