@vitessce/scatterplot-gating 3.0.0 → 3.1.0
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-de0bc9c8.js → deflate-13b0fa24.js} +1 -1
- package/dist/{index-6f1cc356.js → index-c974ea79.js} +949 -1214
- package/dist/index.js +1 -1
- package/dist/{jpeg-a72c0702.js → jpeg-108c168d.js} +1 -1
- package/dist/{lerc-27230ebf.js → lerc-d4cf2fcd.js} +1 -1
- package/dist/{lzw-e71d3b12.js → lzw-18e51214.js} +1 -1
- package/dist/{packbits-5ddf3db9.js → packbits-c341c469.js} +1 -1
- package/dist/{raw-424e77e0.js → raw-2ff96293.js} +1 -1
- package/dist/{webimage-93e70904.js → webimage-51ac6f70.js} +1 -1
- package/dist-tsc/GatingSubscriber.d.ts.map +1 -1
- package/dist-tsc/GatingSubscriber.js +6 -3
- package/package.json +8 -8
- package/src/GatingSubscriber.js +10 -5
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
|
|
2
|
-
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-
|
|
2
|
+
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-c974ea79.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@vitessce/vit-s";
|
|
5
5
|
import "react-dom";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GatingSubscriber.d.ts","sourceRoot":"","sources":["../src/GatingSubscriber.js"],"names":[],"mappings":"AAkCA;;;;;;;;;;;;KAYK;AACL;IAV2B,IAAI,EAAlB,MAAM;IACQ,KAAK,EAAnB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;IAES,cAAc,EAA7B,OAAO;IACS,mBAAmB;IAErB,kBAAkB,EAAhC,MAAM;
|
|
1
|
+
{"version":3,"file":"GatingSubscriber.d.ts","sourceRoot":"","sources":["../src/GatingSubscriber.js"],"names":[],"mappings":"AAkCA;;;;;;;;;;;;KAYK;AACL;IAV2B,IAAI,EAAlB,MAAM;IACQ,KAAK,EAAnB,MAAM;IACQ,kBAAkB,EAAhC,MAAM;IAES,cAAc,EAA7B,OAAO;IACS,mBAAmB;IAErB,kBAAkB,EAAhC,MAAM;gBA4ZlB"}
|
|
@@ -31,7 +31,6 @@ export function GatingSubscriber(props) {
|
|
|
31
31
|
const setComponentViewInfo = useSetComponentViewInfo(uuid);
|
|
32
32
|
// Get "props" from the coordination space.
|
|
33
33
|
const [{ dataset, obsType, featureType, featureValueType, embeddingZoom: zoom, embeddingTargetX: targetX, embeddingTargetY: targetY, embeddingTargetZ: targetZ, obsFilter: cellFilter, obsHighlight: cellHighlight, obsSetSelection: cellSetSelection, obsSetColor: cellSetColor, obsColorEncoding: cellColorEncoding, additionalObsSets: additionalCellSets, embeddingObsSetPolygonsVisible: cellSetPolygonsVisible, embeddingObsSetLabelsVisible: cellSetLabelsVisible, embeddingObsSetLabelSize: cellSetLabelSize, embeddingObsRadius: cellRadiusFixed, embeddingObsRadiusMode: cellRadiusMode, embeddingObsOpacity: cellOpacityFixed, embeddingObsOpacityMode: cellOpacityMode, featureValueColormap: geneExpressionColormap, featureValueColormapRange: geneExpressionColormapRange, featureSelection: gatingFeatureSelectionColor, featureValueTransform, featureValueTransformCoefficient, gatingFeatureSelectionX, gatingFeatureSelectionY, }, { setEmbeddingZoom: setZoom, setEmbeddingTargetX: setTargetX, setEmbeddingTargetY: setTargetY, setEmbeddingTargetZ: setTargetZ, setObsFilter: setCellFilter, setObsSetSelection: setCellSetSelection, setObsHighlight: setCellHighlight, setObsSetColor: setCellSetColor, setObsColorEncoding: setCellColorEncoding, setAdditionalObsSets: setAdditionalCellSets, setEmbeddingObsSetPolygonsVisible: setCellSetPolygonsVisible, setEmbeddingObsSetLabelsVisible: setCellSetLabelsVisible, setEmbeddingObsSetLabelSize: setCellSetLabelSize, setEmbeddingObsRadius: setCellRadiusFixed, setEmbeddingObsRadiusMode: setCellRadiusMode, setEmbeddingObsOpacity: setCellOpacityFixed, setEmbeddingObsOpacityMode: setCellOpacityMode, setFeatureValueColormap: setGeneExpressionColormap, setFeatureValueColormapRange: setGeneExpressionColormapRange, setFeatureValueTransform, setFeatureValueTransformCoefficient, setGatingFeatureSelectionX, setGatingFeatureSelectionY, }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType.GATING], coordinationScopes);
|
|
34
|
-
const [urls, addUrl] = useUrls(loaders, dataset);
|
|
35
34
|
const [width, height, deckRef] = useDeckCanvasSize();
|
|
36
35
|
const title = useMemo(() => {
|
|
37
36
|
if (titleOverride) {
|
|
@@ -45,14 +44,14 @@ export function GatingSubscriber(props) {
|
|
|
45
44
|
const featureSelectionX = useMemo(() => (gatingFeatureSelectionX ? [gatingFeatureSelectionX] : null), [gatingFeatureSelectionX]);
|
|
46
45
|
const featureSelectionY = useMemo(() => (gatingFeatureSelectionY ? [gatingFeatureSelectionY] : null), [gatingFeatureSelectionY]);
|
|
47
46
|
// Get data from loaders using the data hooks.
|
|
48
|
-
const [{ obsSets: cellSets }, obsSetsStatus] = useObsSetsData(loaders, dataset,
|
|
47
|
+
const [{ obsSets: cellSets }, obsSetsStatus, obsSetsUrls] = useObsSetsData(loaders, dataset, false, { setObsSetSelection: setCellSetSelection, setObsSetColor: setCellSetColor }, { obsSetSelection: cellSetSelection, obsSetColor: cellSetColor }, { obsType });
|
|
49
48
|
// eslint-disable-next-line no-unused-vars
|
|
50
49
|
const [expressionDataColor, loadedColor, featureSelectionColorStatus] = useFeatureSelection(loaders, dataset, false, gatingFeatureSelectionColor, { obsType, featureType, featureValueType });
|
|
51
50
|
// eslint-disable-next-line no-unused-vars
|
|
52
51
|
const [expressionDataX, loadedX, featureSelectionXStatus] = useFeatureSelection(loaders, dataset, false, featureSelectionX, { obsType, featureType, featureValueType });
|
|
53
52
|
// eslint-disable-next-line no-unused-vars
|
|
54
53
|
const [expressionDataY, loadedY, featureSelectionYStatus] = useFeatureSelection(loaders, dataset, false, featureSelectionY, { obsType, featureType, featureValueType });
|
|
55
|
-
const [{ obsIndex, featureIndex }, matrixIndicesStatus] = useObsFeatureMatrixIndices(loaders, dataset,
|
|
54
|
+
const [{ obsIndex, featureIndex }, matrixIndicesStatus, matrixIndicesUrls,] = useObsFeatureMatrixIndices(loaders, dataset, false, { obsType, featureType, featureValueType });
|
|
56
55
|
const cellsCount = obsIndex?.length || 0;
|
|
57
56
|
const isReady = useReady([
|
|
58
57
|
obsSetsStatus,
|
|
@@ -61,6 +60,10 @@ export function GatingSubscriber(props) {
|
|
|
61
60
|
featureSelectionYStatus,
|
|
62
61
|
matrixIndicesStatus,
|
|
63
62
|
]);
|
|
63
|
+
const urls = useUrls([
|
|
64
|
+
obsSetsUrls,
|
|
65
|
+
matrixIndicesUrls,
|
|
66
|
+
]);
|
|
64
67
|
// Generate a new cells object with a mapping added for the user selected genes.
|
|
65
68
|
const obsXY = useMemo(() => {
|
|
66
69
|
if (!(cellsCount && expressionDataX?.[0] && expressionDataY?.[0]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/scatterplot-gating",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -20,23 +20,23 @@
|
|
|
20
20
|
"d3-array": "^2.4.0",
|
|
21
21
|
"lodash-es": "^4.17.21",
|
|
22
22
|
"plur": "^5.1.0",
|
|
23
|
-
"@vitessce/constants-internal": "3.
|
|
24
|
-
"@vitessce/
|
|
25
|
-
"@vitessce/
|
|
26
|
-
"@vitessce/
|
|
27
|
-
"@vitessce/
|
|
23
|
+
"@vitessce/constants-internal": "3.1.0",
|
|
24
|
+
"@vitessce/scatterplot": "3.1.0",
|
|
25
|
+
"@vitessce/sets-utils": "3.1.0",
|
|
26
|
+
"@vitessce/utils": "3.1.0",
|
|
27
|
+
"@vitessce/vit-s": "3.1.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"react": "^18.0.0",
|
|
31
31
|
"vite": "^4.3.0",
|
|
32
|
-
"vitest": "^0.
|
|
32
|
+
"vitest": "^0.32.2"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",
|
|
39
|
-
"test": "pnpm exec vitest --run
|
|
39
|
+
"test": "pnpm exec vitest --run"
|
|
40
40
|
},
|
|
41
41
|
"module": "dist/index.js",
|
|
42
42
|
"exports": {
|
package/src/GatingSubscriber.js
CHANGED
|
@@ -120,7 +120,6 @@ export function GatingSubscriber(props) {
|
|
|
120
120
|
coordinationScopes,
|
|
121
121
|
);
|
|
122
122
|
|
|
123
|
-
const [urls, addUrl] = useUrls(loaders, dataset);
|
|
124
123
|
const [width, height, deckRef] = useDeckCanvasSize();
|
|
125
124
|
|
|
126
125
|
const title = useMemo(() => {
|
|
@@ -141,8 +140,8 @@ export function GatingSubscriber(props) {
|
|
|
141
140
|
), [gatingFeatureSelectionY]);
|
|
142
141
|
|
|
143
142
|
// Get data from loaders using the data hooks.
|
|
144
|
-
const [{ obsSets: cellSets }, obsSetsStatus] = useObsSetsData(
|
|
145
|
-
loaders, dataset,
|
|
143
|
+
const [{ obsSets: cellSets }, obsSetsStatus, obsSetsUrls] = useObsSetsData(
|
|
144
|
+
loaders, dataset, false,
|
|
146
145
|
{ setObsSetSelection: setCellSetSelection, setObsSetColor: setCellSetColor },
|
|
147
146
|
{ obsSetSelection: cellSetSelection, obsSetColor: cellSetColor },
|
|
148
147
|
{ obsType },
|
|
@@ -162,8 +161,10 @@ export function GatingSubscriber(props) {
|
|
|
162
161
|
loaders, dataset, false, featureSelectionY,
|
|
163
162
|
{ obsType, featureType, featureValueType },
|
|
164
163
|
);
|
|
165
|
-
const [
|
|
166
|
-
|
|
164
|
+
const [
|
|
165
|
+
{ obsIndex, featureIndex }, matrixIndicesStatus, matrixIndicesUrls,
|
|
166
|
+
] = useObsFeatureMatrixIndices(
|
|
167
|
+
loaders, dataset, false,
|
|
167
168
|
{ obsType, featureType, featureValueType },
|
|
168
169
|
);
|
|
169
170
|
const cellsCount = obsIndex?.length || 0;
|
|
@@ -175,6 +176,10 @@ export function GatingSubscriber(props) {
|
|
|
175
176
|
featureSelectionYStatus,
|
|
176
177
|
matrixIndicesStatus,
|
|
177
178
|
]);
|
|
179
|
+
const urls = useUrls([
|
|
180
|
+
obsSetsUrls,
|
|
181
|
+
matrixIndicesUrls,
|
|
182
|
+
]);
|
|
178
183
|
|
|
179
184
|
// Generate a new cells object with a mapping added for the user selected genes.
|
|
180
185
|
const obsXY = useMemo(() => {
|