@vitessce/biomarker-select 4.1.2 → 4.2.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/index.js +260 -75
- package/dist-tsc/BiomarkerSelectAlt.d.ts.map +1 -1
- package/dist-tsc/BiomarkerSelectAlt.js +11 -3
- package/dist-tsc/BiomarkerSelectAlt.js.map +1 -1
- package/dist-tsc/BiomarkerSelectAlt.test.js +26 -14
- package/dist-tsc/BiomarkerSelectAlt.test.js.map +1 -1
- package/dist-tsc/BiomarkerSelectAltDatasetSelect.d.ts +18 -0
- package/dist-tsc/BiomarkerSelectAltDatasetSelect.d.ts.map +1 -0
- package/dist-tsc/BiomarkerSelectAltDatasetSelect.js +23 -0
- package/dist-tsc/BiomarkerSelectAltDatasetSelect.js.map +1 -0
- package/dist-tsc/BiomarkerSelectAltDatasetSelect.test.d.ts +2 -0
- package/dist-tsc/BiomarkerSelectAltDatasetSelect.test.d.ts.map +1 -0
- package/dist-tsc/BiomarkerSelectAltDatasetSelect.test.js +25 -0
- package/dist-tsc/BiomarkerSelectAltDatasetSelect.test.js.map +1 -0
- package/dist-tsc/BiomarkerSelectAltGeneAutocomplete.d.ts +26 -1
- package/dist-tsc/BiomarkerSelectAltGeneAutocomplete.d.ts.map +1 -1
- package/dist-tsc/BiomarkerSelectAltGeneAutocomplete.js +60 -22
- package/dist-tsc/BiomarkerSelectAltGeneAutocomplete.js.map +1 -1
- package/dist-tsc/BiomarkerSelectAltSampleGroups.d.ts.map +1 -1
- package/dist-tsc/BiomarkerSelectAltSampleGroups.js +14 -7
- package/dist-tsc/BiomarkerSelectAltSampleGroups.js.map +1 -1
- package/dist-tsc/BiomarkerSelectAltSampleGroups.test.d.ts +2 -0
- package/dist-tsc/BiomarkerSelectAltSampleGroups.test.d.ts.map +1 -0
- package/dist-tsc/BiomarkerSelectAltSampleGroups.test.js +81 -0
- package/dist-tsc/BiomarkerSelectAltSampleGroups.test.js.map +1 -0
- package/dist-tsc/BiomarkerSelectAltSubscriber.d.ts +9 -6
- package/dist-tsc/BiomarkerSelectAltSubscriber.d.ts.map +1 -1
- package/dist-tsc/BiomarkerSelectAltSubscriber.js +50 -45
- package/dist-tsc/BiomarkerSelectAltSubscriber.js.map +1 -1
- package/package.json +5 -5
- package/src/BiomarkerSelectAlt.js +34 -8
- package/src/BiomarkerSelectAlt.test.jsx +56 -20
- package/src/BiomarkerSelectAltDatasetSelect.js +48 -0
- package/src/BiomarkerSelectAltDatasetSelect.test.jsx +39 -0
- package/src/BiomarkerSelectAltGeneAutocomplete.js +73 -36
- package/src/BiomarkerSelectAltSampleGroups.js +17 -10
- package/src/BiomarkerSelectAltSampleGroups.test.jsx +98 -0
- package/src/BiomarkerSelectAltSubscriber.js +62 -53
package/dist/index.js
CHANGED
|
@@ -138,6 +138,8 @@ const CoordinationType = {
|
|
|
138
138
|
SPATIAL_SEGMENTATION_FILLED: "spatialSegmentationFilled",
|
|
139
139
|
SPATIAL_SEGMENTATION_STROKE_WIDTH: "spatialSegmentationStrokeWidth",
|
|
140
140
|
SPATIAL_POINT_STROKE_WIDTH: "spatialPointStrokeWidth",
|
|
141
|
+
SPATIAL_POINT_RADIUS: "spatialPointRadius",
|
|
142
|
+
SPATIAL_POINT_PROJECTION_SPACING: "spatialPointProjectionSpacing",
|
|
141
143
|
SPATIAL_CHANNEL_COLOR: "spatialChannelColor",
|
|
142
144
|
SPATIAL_CHANNEL_VISIBLE: "spatialChannelVisible",
|
|
143
145
|
SPATIAL_CHANNEL_OPACITY: "spatialChannelOpacity",
|
|
@@ -152,6 +154,12 @@ const CoordinationType = {
|
|
|
152
154
|
// Per-spatial-layer
|
|
153
155
|
SPATIAL_MAX_RESOLUTION: "spatialMaxResolution",
|
|
154
156
|
// Per-image-channel (for spatial-accelerated)
|
|
157
|
+
SPATIAL_AXIS_LINES_VISIBLE: "spatialAxisLinesVisible",
|
|
158
|
+
// axisLines' visibility in Neuroglancer View
|
|
159
|
+
SPATIAL_BOUNDS_VISIBLE: "spatialBoundsVisible",
|
|
160
|
+
// annotationBounds' visibility in Neuroglancer View
|
|
161
|
+
SPATIAL_SCALE_BAR_VISIBLE: "spatialScaleBarVisible",
|
|
162
|
+
SPATIAL_BACKGROUND_THEME: "spatialBackgroundTheme",
|
|
155
163
|
// For clipping plane sliders
|
|
156
164
|
SPATIAL_SLICE_X: "spatialSliceX",
|
|
157
165
|
SPATIAL_SLICE_Y: "spatialSliceY",
|
|
@@ -161,6 +169,7 @@ const CoordinationType = {
|
|
|
161
169
|
POINT_LAYER: "pointLayer",
|
|
162
170
|
SPATIAL_SPOT_RADIUS: "spatialSpotRadius",
|
|
163
171
|
// In micrometers?
|
|
172
|
+
SPATIAL_SPOT_SHAPE: "spatialSpotShape",
|
|
164
173
|
SPATIAL_SPOT_FILLED: "spatialSpotFilled",
|
|
165
174
|
SPATIAL_SPOT_STROKE_WIDTH: "spatialSpotStrokeWidth",
|
|
166
175
|
SPATIAL_LAYER_COLOR: "spatialLayerColor",
|
|
@@ -257,7 +266,13 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
257
266
|
CoordinationType.SPATIAL_CHANNEL_OPACITY,
|
|
258
267
|
CoordinationType.SPATIAL_CHANNEL_VISIBLE,
|
|
259
268
|
CoordinationType.LEGEND_VISIBLE,
|
|
260
|
-
CoordinationType.SPATIAL_POINT_STROKE_WIDTH
|
|
269
|
+
CoordinationType.SPATIAL_POINT_STROKE_WIDTH,
|
|
270
|
+
CoordinationType.SPATIAL_POINT_RADIUS,
|
|
271
|
+
CoordinationType.SPATIAL_AXIS_LINES_VISIBLE,
|
|
272
|
+
CoordinationType.SPATIAL_BOUNDS_VISIBLE,
|
|
273
|
+
CoordinationType.SPATIAL_POINT_PROJECTION_SPACING,
|
|
274
|
+
CoordinationType.SPATIAL_SCALE_BAR_VISIBLE,
|
|
275
|
+
CoordinationType.SPATIAL_BACKGROUND_THEME
|
|
261
276
|
],
|
|
262
277
|
[ViewType.SCATTERPLOT]: [
|
|
263
278
|
CoordinationType.DATASET,
|
|
@@ -506,6 +521,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
506
521
|
CoordinationType.SPOT_LAYER,
|
|
507
522
|
CoordinationType.POINT_LAYER,
|
|
508
523
|
CoordinationType.SPATIAL_SPOT_RADIUS,
|
|
524
|
+
CoordinationType.SPATIAL_SPOT_SHAPE,
|
|
509
525
|
CoordinationType.SPATIAL_SPOT_FILLED,
|
|
510
526
|
CoordinationType.SPATIAL_SPOT_STROKE_WIDTH,
|
|
511
527
|
CoordinationType.SPATIAL_LAYER_COLOR,
|
|
@@ -523,7 +539,10 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
523
539
|
CoordinationType.ANNOTATION_OVERLAY_VISIBLE,
|
|
524
540
|
CoordinationType.ANNOTATION_TRANSITION_DURATION,
|
|
525
541
|
CoordinationType.ANNOTATION_EDITABLE,
|
|
526
|
-
CoordinationType.ANNOTATION_SEMANTIC_ZOOM
|
|
542
|
+
CoordinationType.ANNOTATION_SEMANTIC_ZOOM,
|
|
543
|
+
CoordinationType.SPATIAL_POINT_RADIUS,
|
|
544
|
+
CoordinationType.SPATIAL_POINT_STROKE_WIDTH,
|
|
545
|
+
CoordinationType.SPATIAL_BACKGROUND_THEME
|
|
527
546
|
],
|
|
528
547
|
[ViewType.ANNOTATION_CONTROLLER]: [
|
|
529
548
|
CoordinationType.DATASET,
|
|
@@ -688,6 +707,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
688
707
|
CoordinationType.SPATIAL_SEGMENTATION_FILLED,
|
|
689
708
|
CoordinationType.SPATIAL_SEGMENTATION_STROKE_WIDTH,
|
|
690
709
|
CoordinationType.SPATIAL_POINT_STROKE_WIDTH,
|
|
710
|
+
CoordinationType.SPATIAL_POINT_RADIUS,
|
|
691
711
|
CoordinationType.IMAGE_CHANNEL,
|
|
692
712
|
CoordinationType.IMAGE_LAYER,
|
|
693
713
|
CoordinationType.SEGMENTATION_CHANNEL,
|
|
@@ -706,6 +726,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
706
726
|
CoordinationType.SPOT_LAYER,
|
|
707
727
|
CoordinationType.POINT_LAYER,
|
|
708
728
|
CoordinationType.SPATIAL_SPOT_RADIUS,
|
|
729
|
+
CoordinationType.SPATIAL_SPOT_SHAPE,
|
|
709
730
|
CoordinationType.SPATIAL_SPOT_FILLED,
|
|
710
731
|
CoordinationType.SPATIAL_SPOT_STROKE_WIDTH,
|
|
711
732
|
CoordinationType.SPATIAL_LAYER_COLOR,
|
|
@@ -68141,7 +68162,7 @@ const ListboxComponent$1 = React__default.forwardRef((props, ref) => {
|
|
|
68141
68162
|
return jsx$1("div", { ref, children: jsx$1(OuterElementContext$1.Provider, { value: other, children: jsx$1(VariableSizeList, { height: Math.min(8, itemCount) * LIST_ROW_HEIGHT$1, itemSize: () => LIST_ROW_HEIGHT$1, width: "100%", innerElementType: "ul", outerElementType: OuterElementType$1, overscanCount: 5, ref: gridRef, itemCount, itemData: items, children: ListRow$1 }) }) });
|
|
68142
68163
|
});
|
|
68143
68164
|
function SimpleAutocomplete(props) {
|
|
68144
|
-
const { getMatches, onChange, textInputLabel = "Enter a gene", getItemLabel = (option) => option.label } = props;
|
|
68165
|
+
const { getMatches, onChange, textInputLabel = "Enter a gene", getItemLabel = (option) => option.label, value: selectedItem } = props;
|
|
68145
68166
|
const { classes: classes2 } = useStyles$3();
|
|
68146
68167
|
const [potentialItems, setPotentialItems] = useState([]);
|
|
68147
68168
|
const handleInputChange = async (_event, value) => {
|
|
@@ -68152,7 +68173,9 @@ function SimpleAutocomplete(props) {
|
|
|
68152
68173
|
const results = await getMatches(value);
|
|
68153
68174
|
setPotentialItems(results);
|
|
68154
68175
|
};
|
|
68155
|
-
|
|
68176
|
+
const isItemEqual = (a, b) => getItemLabel(a) === getItemLabel(b);
|
|
68177
|
+
const options = selectedItem && !potentialItems.some((item) => isItemEqual(item, selectedItem)) ? [selectedItem, ...potentialItems] : potentialItems;
|
|
68178
|
+
return jsx$1(Autocomplete, { options, ...selectedItem !== void 0 ? { value: selectedItem } : {}, isOptionEqualToValue: isItemEqual, autoComplete: true, includeInputInList: true, onInputChange: handleInputChange, onChange: (_event, item) => onChange(item), classes: { input: classes2.searchInput }, renderInput: (params) => jsx$1(TextField, { label: textInputLabel, variant: "outlined", ...params }), getOptionLabel: (option) => option.label, renderOption: (props0, option, state) => [props0, option, getItemLabel, state.index], slotProps: {
|
|
68156
68179
|
listbox: {
|
|
68157
68180
|
component: ListboxComponent$1
|
|
68158
68181
|
}
|
|
@@ -69495,6 +69518,89 @@ function useQueries({
|
|
|
69495
69518
|
}
|
|
69496
69519
|
return getCombinedResult(trackResult());
|
|
69497
69520
|
}
|
|
69521
|
+
function useBaseQuery(options, Observer, queryClient) {
|
|
69522
|
+
{
|
|
69523
|
+
if (typeof options !== "object" || Array.isArray(options)) {
|
|
69524
|
+
throw new Error(
|
|
69525
|
+
'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
|
|
69526
|
+
);
|
|
69527
|
+
}
|
|
69528
|
+
}
|
|
69529
|
+
const isRestoring = useIsRestoring();
|
|
69530
|
+
const errorResetBoundary = useQueryErrorResetBoundary();
|
|
69531
|
+
const client = useQueryClient();
|
|
69532
|
+
const defaultedOptions = client.defaultQueryOptions(options);
|
|
69533
|
+
client.getDefaultOptions().queries?._experimental_beforeQuery?.(
|
|
69534
|
+
defaultedOptions
|
|
69535
|
+
);
|
|
69536
|
+
{
|
|
69537
|
+
if (!defaultedOptions.queryFn) {
|
|
69538
|
+
console.error(
|
|
69539
|
+
`[${defaultedOptions.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`
|
|
69540
|
+
);
|
|
69541
|
+
}
|
|
69542
|
+
}
|
|
69543
|
+
defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
|
|
69544
|
+
ensureSuspenseTimers(defaultedOptions);
|
|
69545
|
+
ensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary);
|
|
69546
|
+
useClearResetErrorBoundary(errorResetBoundary);
|
|
69547
|
+
const isNewCacheEntry = !client.getQueryCache().get(defaultedOptions.queryHash);
|
|
69548
|
+
const [observer] = React.useState(
|
|
69549
|
+
() => new Observer(
|
|
69550
|
+
client,
|
|
69551
|
+
defaultedOptions
|
|
69552
|
+
)
|
|
69553
|
+
);
|
|
69554
|
+
const result = observer.getOptimisticResult(defaultedOptions);
|
|
69555
|
+
const shouldSubscribe = !isRestoring && options.subscribed !== false;
|
|
69556
|
+
React.useSyncExternalStore(
|
|
69557
|
+
React.useCallback(
|
|
69558
|
+
(onStoreChange) => {
|
|
69559
|
+
const unsubscribe = shouldSubscribe ? observer.subscribe(notifyManager.batchCalls(onStoreChange)) : noop$1;
|
|
69560
|
+
observer.updateResult();
|
|
69561
|
+
return unsubscribe;
|
|
69562
|
+
},
|
|
69563
|
+
[observer, shouldSubscribe]
|
|
69564
|
+
),
|
|
69565
|
+
() => observer.getCurrentResult(),
|
|
69566
|
+
() => observer.getCurrentResult()
|
|
69567
|
+
);
|
|
69568
|
+
React.useEffect(() => {
|
|
69569
|
+
observer.setOptions(defaultedOptions);
|
|
69570
|
+
}, [defaultedOptions, observer]);
|
|
69571
|
+
if (shouldSuspend(defaultedOptions, result)) {
|
|
69572
|
+
throw fetchOptimistic(defaultedOptions, observer, errorResetBoundary);
|
|
69573
|
+
}
|
|
69574
|
+
if (getHasError({
|
|
69575
|
+
result,
|
|
69576
|
+
errorResetBoundary,
|
|
69577
|
+
throwOnError: defaultedOptions.throwOnError,
|
|
69578
|
+
query: client.getQueryCache().get(defaultedOptions.queryHash),
|
|
69579
|
+
suspense: defaultedOptions.suspense
|
|
69580
|
+
})) {
|
|
69581
|
+
throw result.error;
|
|
69582
|
+
}
|
|
69583
|
+
client.getDefaultOptions().queries?._experimental_afterQuery?.(
|
|
69584
|
+
defaultedOptions,
|
|
69585
|
+
result
|
|
69586
|
+
);
|
|
69587
|
+
if (defaultedOptions.experimental_prefetchInRender && !isServer && willFetch(result, isRestoring)) {
|
|
69588
|
+
const promise = isNewCacheEntry ? (
|
|
69589
|
+
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
|
69590
|
+
fetchOptimistic(defaultedOptions, observer, errorResetBoundary)
|
|
69591
|
+
) : (
|
|
69592
|
+
// subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
|
|
69593
|
+
client.getQueryCache().get(defaultedOptions.queryHash)?.promise
|
|
69594
|
+
);
|
|
69595
|
+
promise?.catch(noop$1).finally(() => {
|
|
69596
|
+
observer.updateResult();
|
|
69597
|
+
});
|
|
69598
|
+
}
|
|
69599
|
+
return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
|
|
69600
|
+
}
|
|
69601
|
+
function useQuery(options, queryClient) {
|
|
69602
|
+
return useBaseQuery(options, QueryObserver);
|
|
69603
|
+
}
|
|
69498
69604
|
const columns = [
|
|
69499
69605
|
{
|
|
69500
69606
|
field: "targetLabel",
|
|
@@ -70955,49 +71061,62 @@ function baseUniq(array, iteratee, comparator) {
|
|
|
70955
71061
|
function uniqBy(array, iteratee) {
|
|
70956
71062
|
return array && array.length ? baseUniq(array, baseIteratee(iteratee)) : [];
|
|
70957
71063
|
}
|
|
71064
|
+
function isSameBiomarker(node2, biomarkerSelection) {
|
|
71065
|
+
return Boolean(node2 && biomarkerSelection && node2.label === biomarkerSelection.label && node2.nodeType === biomarkerSelection.nodeType);
|
|
71066
|
+
}
|
|
70958
71067
|
function BiomarkerSelectAltGeneAutocomplete(props) {
|
|
70959
71068
|
const {
|
|
70960
71069
|
setFeatureSelection,
|
|
70961
71070
|
autocompleteNode,
|
|
70962
71071
|
getEdges,
|
|
70963
|
-
|
|
70964
|
-
|
|
70965
|
-
|
|
71072
|
+
biomarkerSelection,
|
|
71073
|
+
setBiomarkerSelection,
|
|
71074
|
+
resolvedBiomarker
|
|
70966
71075
|
} = props;
|
|
70967
|
-
const
|
|
70968
|
-
const [selectedItem, setSelectedItem] = useState(null);
|
|
71076
|
+
const [pendingItem, setPendingItem] = useState(null);
|
|
70969
71077
|
const [biomarkerInfoOpen, setBiomarkerInfoOpen] = useState(false);
|
|
70970
|
-
|
|
70971
|
-
|
|
70972
|
-
|
|
70973
|
-
|
|
70974
|
-
|
|
70975
|
-
|
|
70976
|
-
const matchingGenes = await
|
|
70977
|
-
|
|
70978
|
-
);
|
|
70979
|
-
|
|
70980
|
-
|
|
70981
|
-
|
|
70982
|
-
|
|
71078
|
+
const confirmedItem = isSameBiomarker(resolvedBiomarker, biomarkerSelection) ? resolvedBiomarker : biomarkerSelection;
|
|
71079
|
+
const displayedItem = pendingItem ?? confirmedItem ?? null;
|
|
71080
|
+
const hasPendingChange = Boolean(pendingItem) && !isSameBiomarker(pendingItem, biomarkerSelection);
|
|
71081
|
+
const hasInfo = Boolean(displayedItem?.term);
|
|
71082
|
+
async function confirmPendingItem() {
|
|
71083
|
+
if (hasPendingChange) {
|
|
71084
|
+
const matchingGenes = await getEdges(pendingItem, "gene");
|
|
71085
|
+
const nextFeatureSelection = uniqBy(matchingGenes, "label").map((d) => d.label);
|
|
71086
|
+
setBiomarkerSelection({ label: pendingItem.label, nodeType: pendingItem.nodeType });
|
|
71087
|
+
setFeatureSelection(nextFeatureSelection);
|
|
71088
|
+
}
|
|
71089
|
+
setPendingItem(null);
|
|
71090
|
+
}
|
|
71091
|
+
function clearBiomarkerSelection() {
|
|
71092
|
+
setPendingItem(null);
|
|
71093
|
+
setBiomarkerSelection(null);
|
|
71094
|
+
setFeatureSelection(null);
|
|
71095
|
+
}
|
|
71096
|
+
function handleChange(item) {
|
|
71097
|
+
if (item) {
|
|
71098
|
+
setPendingItem(item.data);
|
|
71099
|
+
} else {
|
|
71100
|
+
clearBiomarkerSelection();
|
|
70983
71101
|
}
|
|
70984
71102
|
}
|
|
70985
|
-
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Grid, { container: true, size: 12 }, /* @__PURE__ */ React__default.createElement(Grid, { size: 8 }, /* @__PURE__ */ React__default.createElement(
|
|
71103
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Grid, { container: true, size: 12 }, /* @__PURE__ */ React__default.createElement(Grid, { size: hasPendingChange ? 8 : 12 }, /* @__PURE__ */ React__default.createElement(
|
|
70986
71104
|
SimpleAutocomplete,
|
|
70987
71105
|
{
|
|
71106
|
+
value: displayedItem ? { label: displayedItem.label, data: displayedItem } : null,
|
|
70988
71107
|
getMatches: autocompleteNode,
|
|
70989
|
-
onChange:
|
|
71108
|
+
onChange: handleChange,
|
|
70990
71109
|
textInputLabel: "Enter a gene",
|
|
70991
71110
|
getItemLabel: (item) => `${item.label} (${item.data.nodeType})`
|
|
70992
71111
|
}
|
|
70993
|
-
)),
|
|
71112
|
+
)), hasPendingChange ? /* @__PURE__ */ React__default.createElement(Grid, { size: 4 }, " ", /* @__PURE__ */ React__default.createElement(
|
|
70994
71113
|
Button,
|
|
70995
71114
|
{
|
|
70996
71115
|
variant: "contained",
|
|
70997
|
-
onClick:
|
|
71116
|
+
onClick: confirmPendingItem
|
|
70998
71117
|
},
|
|
70999
71118
|
"Select"
|
|
71000
|
-
)) : null),
|
|
71119
|
+
)) : null), hasInfo ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
71001
71120
|
Grid,
|
|
71002
71121
|
{
|
|
71003
71122
|
container: true,
|
|
@@ -71006,12 +71125,12 @@ function BiomarkerSelectAltGeneAutocomplete(props) {
|
|
|
71006
71125
|
flexDirection: "row"
|
|
71007
71126
|
}
|
|
71008
71127
|
},
|
|
71009
|
-
/* @__PURE__ */ React__default.createElement(Button, { onClick: () => setBiomarkerInfoOpen(true) }, "View ",
|
|
71010
|
-
), /* @__PURE__ */ React__default.createElement(Dialog, { open: biomarkerInfoOpen, onClose: () => setBiomarkerInfoOpen(false), maxWidth: "md" }, /* @__PURE__ */ React__default.createElement(Typography, { variant: "h4", title:
|
|
71128
|
+
/* @__PURE__ */ React__default.createElement(Button, { onClick: () => setBiomarkerInfoOpen(true) }, "View ", displayedItem.nodeType, " info")
|
|
71129
|
+
), /* @__PURE__ */ React__default.createElement(Dialog, { open: biomarkerInfoOpen, onClose: () => setBiomarkerInfoOpen(false), maxWidth: "md" }, /* @__PURE__ */ React__default.createElement(Typography, { variant: "h4", title: displayedItem.term }, displayedItem.label), /* @__PURE__ */ React__default.createElement(Grid, { container: true, size: 12 }, /* @__PURE__ */ React__default.createElement(InfoIcon, null), /* @__PURE__ */ React__default.createElement(Typography, { variant: "h6" }, "About this ", displayedItem.nodeType)), /* @__PURE__ */ React__default.createElement(Grid, { container: true, size: 12, key: displayedItem.term, sx: { width: "800px" } }, /* @__PURE__ */ React__default.createElement(
|
|
71011
71130
|
"iframe",
|
|
71012
71131
|
{
|
|
71013
|
-
title: `Embedded metadata page for ontology term ${
|
|
71014
|
-
src: `https://identifiers.org/${
|
|
71132
|
+
title: `Embedded metadata page for ontology term ${displayedItem.term}`,
|
|
71133
|
+
src: `https://identifiers.org/${displayedItem.term}`,
|
|
71015
71134
|
width: "100%",
|
|
71016
71135
|
height: "500",
|
|
71017
71136
|
style: { border: 0 }
|
|
@@ -71022,10 +71141,9 @@ function BiomarkerSelectAltSampleGroups(props) {
|
|
|
71022
71141
|
const {
|
|
71023
71142
|
setSampleSetFilter,
|
|
71024
71143
|
setSampleSetSelection,
|
|
71144
|
+
sampleSetSelection,
|
|
71025
71145
|
stratifications
|
|
71026
71146
|
} = props;
|
|
71027
|
-
const [lhsSelectedGroup, setLhsSelectedGroup] = useState(null);
|
|
71028
|
-
const [rhsSelectedGroup, setRhsSelectedGroup] = useState(null);
|
|
71029
71147
|
const sampleSetOptions = stratifications?.filter((s) => s.stratificationType === "sampleSet");
|
|
71030
71148
|
const hasSampleSetOptions = sampleSetOptions && sampleSetOptions.length > 0;
|
|
71031
71149
|
const lhsOptions = useMemo(() => {
|
|
@@ -71067,6 +71185,10 @@ function BiomarkerSelectAltSampleGroups(props) {
|
|
|
71067
71185
|
}
|
|
71068
71186
|
return [];
|
|
71069
71187
|
}, [sampleSetOptions]);
|
|
71188
|
+
const lhsSelectedGroup = useMemo(() => {
|
|
71189
|
+
const lhsPath = sampleSetSelection?.[0];
|
|
71190
|
+
return lhsOptions.find((o) => isEqual(o.path, lhsPath))?.name ?? null;
|
|
71191
|
+
}, [lhsOptions, sampleSetSelection]);
|
|
71070
71192
|
const rhsOptions = useMemo(() => {
|
|
71071
71193
|
if (sampleSetOptions && lhsOptions && lhsSelectedGroup) {
|
|
71072
71194
|
const lhsOption = lhsOptions.find((o) => o.name === lhsSelectedGroup);
|
|
@@ -71074,8 +71196,11 @@ function BiomarkerSelectAltSampleGroups(props) {
|
|
|
71074
71196
|
}
|
|
71075
71197
|
return [];
|
|
71076
71198
|
}, [sampleSetOptions, lhsOptions, lhsSelectedGroup]);
|
|
71199
|
+
const rhsSelectedGroup = useMemo(() => {
|
|
71200
|
+
const rhsPath = sampleSetSelection?.[1];
|
|
71201
|
+
return rhsOptions.find((o) => isEqual(o.path, rhsPath))?.name ?? null;
|
|
71202
|
+
}, [rhsOptions, sampleSetSelection]);
|
|
71077
71203
|
function handleFirstGroupChange(event) {
|
|
71078
|
-
setLhsSelectedGroup(event.target.value);
|
|
71079
71204
|
if (event.target.value === "__all__") {
|
|
71080
71205
|
setSampleSetFilter(null);
|
|
71081
71206
|
setSampleSetSelection(null);
|
|
@@ -71088,7 +71213,6 @@ function BiomarkerSelectAltSampleGroups(props) {
|
|
|
71088
71213
|
}
|
|
71089
71214
|
}
|
|
71090
71215
|
function handleSecondGroupChange(event) {
|
|
71091
|
-
setRhsSelectedGroup(event.target.value);
|
|
71092
71216
|
if (event.target.value === "__none__") {
|
|
71093
71217
|
const lhsOption = lhsOptions.find((o) => o.name === lhsSelectedGroup);
|
|
71094
71218
|
if (lhsOption) {
|
|
@@ -71103,7 +71227,7 @@ function BiomarkerSelectAltSampleGroups(props) {
|
|
|
71103
71227
|
}
|
|
71104
71228
|
}
|
|
71105
71229
|
}
|
|
71106
|
-
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Grid, { container: true, size: 12 }, /* @__PURE__ */ React__default.createElement(Grid, { container: true, size: 4 }, /* @__PURE__ */ React__default.createElement("span", { style: { lineHeight: "50px" } }, "
|
|
71230
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Grid, { container: true, size: 12 }, /* @__PURE__ */ React__default.createElement(Grid, { container: true, size: 4 }, /* @__PURE__ */ React__default.createElement("span", { style: { lineHeight: "50px" } }, "In group: ")), /* @__PURE__ */ React__default.createElement(Grid, { container: true, size: 8 }, /* @__PURE__ */ React__default.createElement(
|
|
71107
71231
|
NativeSelect,
|
|
71108
71232
|
{
|
|
71109
71233
|
onChange: handleFirstGroupChange,
|
|
@@ -71113,7 +71237,7 @@ function BiomarkerSelectAltSampleGroups(props) {
|
|
|
71113
71237
|
},
|
|
71114
71238
|
/* @__PURE__ */ React__default.createElement("option", { value: "__all__" }, "All"),
|
|
71115
71239
|
hasSampleSetOptions ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, lhsOptions.map((o) => /* @__PURE__ */ React__default.createElement("option", { value: o.name }, o.name))) : null
|
|
71116
|
-
))), /* @__PURE__ */ React__default.createElement(Grid, { container: true, size: 12 }, /* @__PURE__ */ React__default.createElement(Grid, { container: true, size: 4 }, /* @__PURE__ */ React__default.createElement("span", { style: { lineHeight: "50px" } }, "
|
|
71240
|
+
))), /* @__PURE__ */ React__default.createElement(Grid, { container: true, size: 12 }, /* @__PURE__ */ React__default.createElement(Grid, { container: true, size: 4 }, /* @__PURE__ */ React__default.createElement("span", { style: { lineHeight: "50px" } }, "Compare to: ")), /* @__PURE__ */ React__default.createElement(Grid, { container: true, size: 8 }, /* @__PURE__ */ React__default.createElement(
|
|
71117
71241
|
NativeSelect,
|
|
71118
71242
|
{
|
|
71119
71243
|
onChange: handleSecondGroupChange,
|
|
@@ -71125,19 +71249,48 @@ function BiomarkerSelectAltSampleGroups(props) {
|
|
|
71125
71249
|
hasSampleSetOptions ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, rhsOptions.map((o) => /* @__PURE__ */ React__default.createElement("option", { value: o.name }, o.name))) : null
|
|
71126
71250
|
))));
|
|
71127
71251
|
}
|
|
71252
|
+
function BiomarkerSelectAltDatasetSelect(props) {
|
|
71253
|
+
const {
|
|
71254
|
+
datasetOptions,
|
|
71255
|
+
dataset,
|
|
71256
|
+
setDataset
|
|
71257
|
+
} = props;
|
|
71258
|
+
if (!Array.isArray(datasetOptions) || datasetOptions.length < 2) {
|
|
71259
|
+
return null;
|
|
71260
|
+
}
|
|
71261
|
+
function handleChange(event) {
|
|
71262
|
+
setDataset(event.target.value);
|
|
71263
|
+
}
|
|
71264
|
+
return /* @__PURE__ */ React__default.createElement(Grid, { container: true, size: 12, wrap: "nowrap" }, /* @__PURE__ */ React__default.createElement(Grid, { container: true, size: "auto" }, /* @__PURE__ */ React__default.createElement("span", { style: { lineHeight: "50px", whiteSpace: "nowrap" } }, "Modality: ")), /* @__PURE__ */ React__default.createElement(Grid, { container: true, size: "grow", sx: { minWidth: 0 } }, /* @__PURE__ */ React__default.createElement(
|
|
71265
|
+
NativeSelect,
|
|
71266
|
+
{
|
|
71267
|
+
onChange: handleChange,
|
|
71268
|
+
value: dataset ?? "",
|
|
71269
|
+
variant: "standard",
|
|
71270
|
+
sx: { width: "100%" },
|
|
71271
|
+
inputProps: { "aria-label": "Select dataset" }
|
|
71272
|
+
},
|
|
71273
|
+
datasetOptions.map((o) => /* @__PURE__ */ React__default.createElement("option", { key: o.uid, value: o.uid }, o.name ?? o.uid))
|
|
71274
|
+
)));
|
|
71275
|
+
}
|
|
71128
71276
|
function BiomarkerSelectAlt(props) {
|
|
71129
71277
|
const {
|
|
71130
71278
|
setFeatureSelection,
|
|
71131
71279
|
setSampleSetFilter,
|
|
71132
71280
|
setSampleSetSelection,
|
|
71133
|
-
|
|
71134
|
-
|
|
71135
|
-
|
|
71281
|
+
sampleSetSelection,
|
|
71282
|
+
biomarkerSelection,
|
|
71283
|
+
setBiomarkerSelection,
|
|
71284
|
+
resolvedBiomarker,
|
|
71136
71285
|
autocompleteNode,
|
|
71137
71286
|
getEdges,
|
|
71138
|
-
stratifications
|
|
71287
|
+
stratifications,
|
|
71288
|
+
datasetOptions,
|
|
71289
|
+
dataset,
|
|
71290
|
+
setDataset
|
|
71139
71291
|
} = props;
|
|
71140
71292
|
const { classes: classes2 } = useStyles$2();
|
|
71293
|
+
const hasMultipleDatasets = Array.isArray(datasetOptions) && datasetOptions.length > 1;
|
|
71141
71294
|
return /* @__PURE__ */ React__default.createElement(Grid, { container: true, sx: { border: "0px solid red" } }, /* @__PURE__ */ React__default.createElement(Grid, { container: true, size: 12, className: classes2.header }, /* @__PURE__ */ React__default.createElement(
|
|
71142
71295
|
Grid,
|
|
71143
71296
|
{
|
|
@@ -71153,16 +71306,37 @@ function BiomarkerSelectAlt(props) {
|
|
|
71153
71306
|
setFeatureSelection,
|
|
71154
71307
|
autocompleteNode,
|
|
71155
71308
|
getEdges,
|
|
71156
|
-
|
|
71157
|
-
|
|
71158
|
-
|
|
71309
|
+
biomarkerSelection,
|
|
71310
|
+
setBiomarkerSelection,
|
|
71311
|
+
resolvedBiomarker
|
|
71312
|
+
}
|
|
71313
|
+
)
|
|
71314
|
+
), hasMultipleDatasets ? /* @__PURE__ */ React__default.createElement(
|
|
71315
|
+
Grid,
|
|
71316
|
+
{
|
|
71317
|
+
container: true,
|
|
71318
|
+
size: 4,
|
|
71319
|
+
sx: {
|
|
71320
|
+
justifyContent: "flex-start",
|
|
71321
|
+
flexDirection: "column",
|
|
71322
|
+
minWidth: 0,
|
|
71323
|
+
paddingLeft: "8px",
|
|
71324
|
+
paddingRight: "8px"
|
|
71325
|
+
}
|
|
71326
|
+
},
|
|
71327
|
+
/* @__PURE__ */ React__default.createElement(
|
|
71328
|
+
BiomarkerSelectAltDatasetSelect,
|
|
71329
|
+
{
|
|
71330
|
+
datasetOptions,
|
|
71331
|
+
dataset,
|
|
71332
|
+
setDataset
|
|
71159
71333
|
}
|
|
71160
71334
|
)
|
|
71161
|
-
), /* @__PURE__ */ React__default.createElement(
|
|
71335
|
+
) : null, /* @__PURE__ */ React__default.createElement(
|
|
71162
71336
|
Grid,
|
|
71163
71337
|
{
|
|
71164
71338
|
container: true,
|
|
71165
|
-
size: 5,
|
|
71339
|
+
size: hasMultipleDatasets ? 4 : 5,
|
|
71166
71340
|
sx: {
|
|
71167
71341
|
justifyContent: "flex-start",
|
|
71168
71342
|
flexDirection: "column"
|
|
@@ -71173,6 +71347,7 @@ function BiomarkerSelectAlt(props) {
|
|
|
71173
71347
|
{
|
|
71174
71348
|
setSampleSetFilter,
|
|
71175
71349
|
setSampleSetSelection,
|
|
71350
|
+
sampleSetSelection,
|
|
71176
71351
|
stratifications
|
|
71177
71352
|
}
|
|
71178
71353
|
)
|
|
@@ -71180,7 +71355,9 @@ function BiomarkerSelectAlt(props) {
|
|
|
71180
71355
|
}
|
|
71181
71356
|
function BiomarkerSelectAltSubscriber(props) {
|
|
71182
71357
|
const {
|
|
71183
|
-
|
|
71358
|
+
uuid,
|
|
71359
|
+
coordinationScopes: coordinationScopesRaw,
|
|
71360
|
+
biomarkerSelection = null
|
|
71184
71361
|
} = props;
|
|
71185
71362
|
const loaders = useLoaders();
|
|
71186
71363
|
const coordinationScopes = useCoordinationScopes(coordinationScopesRaw);
|
|
@@ -71192,6 +71369,7 @@ function BiomarkerSelectAltSubscriber(props) {
|
|
|
71192
71369
|
sampleSetSelection,
|
|
71193
71370
|
featureSelection
|
|
71194
71371
|
}, {
|
|
71372
|
+
setDataset,
|
|
71195
71373
|
setSampleSetFilter,
|
|
71196
71374
|
setSampleSetSelection,
|
|
71197
71375
|
setFeatureSelection
|
|
@@ -71202,6 +71380,17 @@ function BiomarkerSelectAltSubscriber(props) {
|
|
|
71202
71380
|
const viewConfigStoreApi = useViewConfigStoreApi();
|
|
71203
71381
|
const viewConfig = useViewConfig();
|
|
71204
71382
|
const setViewConfig = useSetViewConfig(viewConfigStoreApi);
|
|
71383
|
+
const setBiomarkerSelection = useCallback((newBiomarkerSelection) => {
|
|
71384
|
+
const { viewConfig: currentViewConfig } = viewConfigStoreApi.getState();
|
|
71385
|
+
setViewConfig({
|
|
71386
|
+
...currentViewConfig,
|
|
71387
|
+
layout: currentViewConfig.layout.map((v) => v.uid === uuid ? { ...v, props: { ...v.props, biomarkerSelection: newBiomarkerSelection } } : v)
|
|
71388
|
+
});
|
|
71389
|
+
}, [viewConfigStoreApi, setViewConfig, uuid]);
|
|
71390
|
+
const datasetOptions = useMemo(() => (viewConfig?.datasets ?? []).map((d) => ({
|
|
71391
|
+
uid: d.uid,
|
|
71392
|
+
name: d.name
|
|
71393
|
+
})), [viewConfig?.datasets]);
|
|
71205
71394
|
useMatchingLoader(
|
|
71206
71395
|
loaders,
|
|
71207
71396
|
dataset,
|
|
@@ -71215,10 +71404,6 @@ function BiomarkerSelectAltSubscriber(props) {
|
|
|
71215
71404
|
{ sampleType }
|
|
71216
71405
|
);
|
|
71217
71406
|
const sampleSetsColumnNameMappingReversed = useColumnNameMapping(sampleSetsLoader, true);
|
|
71218
|
-
const [mode] = useState(null);
|
|
71219
|
-
const [currentModalityAgnosticSelection, setCurrentModalityAgnosticSelection] = useState(null);
|
|
71220
|
-
const [currentModalitySpecificSelection, setCurrentModalitySpecificSelection] = useState(null);
|
|
71221
|
-
const [currentStratificationSelection, setCurrentStratificationSelection] = useState(null);
|
|
71222
71407
|
const autocompleteFeature2 = useAsyncFunction(AsyncFunctionType.AUTOCOMPLETE_FEATURE);
|
|
71223
71408
|
const transformFeature2 = useAsyncFunction(AsyncFunctionType.TRANSFORM_FEATURE);
|
|
71224
71409
|
const autocompleteNode = useCallback(async (inputValue) => {
|
|
@@ -71232,6 +71417,23 @@ function BiomarkerSelectAltSubscriber(props) {
|
|
|
71232
71417
|
async (node2, targetModality) => transformFeature2(node2, targetModality),
|
|
71233
71418
|
[transformFeature2]
|
|
71234
71419
|
);
|
|
71420
|
+
const { data: resolvedBiomarker } = useQuery({
|
|
71421
|
+
queryKey: ["biomarkerSelectAlt", "resolveBiomarker", biomarkerSelection?.label, biomarkerSelection?.nodeType],
|
|
71422
|
+
enabled: Boolean(biomarkerSelection),
|
|
71423
|
+
staleTime: Infinity,
|
|
71424
|
+
queryFn: async () => {
|
|
71425
|
+
const { label, nodeType } = biomarkerSelection;
|
|
71426
|
+
const matches = await autocompleteFeature2(label);
|
|
71427
|
+
const node2 = matches.find((n) => n.label === label && n.nodeType === nodeType) ?? null;
|
|
71428
|
+
const genes = node2 ? uniqBy(await transformFeature2(node2, "gene"), "label") : [];
|
|
71429
|
+
return { node: node2, genes };
|
|
71430
|
+
}
|
|
71431
|
+
});
|
|
71432
|
+
useEffect(() => {
|
|
71433
|
+
if (resolvedBiomarker && biomarkerSelection && featureSelection == null) {
|
|
71434
|
+
setFeatureSelection(resolvedBiomarker.genes.map((d) => d.label));
|
|
71435
|
+
}
|
|
71436
|
+
}, [resolvedBiomarker, biomarkerSelection, featureSelection, setFeatureSelection]);
|
|
71235
71437
|
const [{ comparisonMetadata }, cmpMetadataStatus, cmpMetadataUrls] = useComparisonMetadata(
|
|
71236
71438
|
loaders,
|
|
71237
71439
|
dataset,
|
|
@@ -71268,33 +71470,16 @@ function BiomarkerSelectAltSubscriber(props) {
|
|
|
71268
71470
|
setFeatureSelection,
|
|
71269
71471
|
setSampleSetFilter,
|
|
71270
71472
|
setSampleSetSelection,
|
|
71271
|
-
|
|
71272
|
-
|
|
71273
|
-
|
|
71473
|
+
sampleSetSelection,
|
|
71474
|
+
biomarkerSelection,
|
|
71475
|
+
setBiomarkerSelection,
|
|
71476
|
+
resolvedBiomarker: resolvedBiomarker?.node ?? null,
|
|
71274
71477
|
autocompleteNode,
|
|
71275
71478
|
getEdges,
|
|
71276
71479
|
stratifications: stratificationOptions,
|
|
71277
|
-
|
|
71278
|
-
|
|
71279
|
-
|
|
71280
|
-
coordinationSpace: {
|
|
71281
|
-
...viewConfig.coordinationSpace,
|
|
71282
|
-
sampleSetFilter: {
|
|
71283
|
-
...viewConfig.coordinationSpace.sampleSetFilter,
|
|
71284
|
-
__comparison__: currentStratificationSelection?.sampleSets
|
|
71285
|
-
},
|
|
71286
|
-
sampleSetSelection: {
|
|
71287
|
-
...viewConfig.coordinationSpace.sampleSetSelection,
|
|
71288
|
-
__comparison__: currentStratificationSelection?.sampleSets
|
|
71289
|
-
},
|
|
71290
|
-
featureSelection: {
|
|
71291
|
-
...viewConfig.coordinationSpace.featureSelection,
|
|
71292
|
-
__comparison__: currentModalitySpecificSelection ? currentModalitySpecificSelection.map((d) => d.label) : null
|
|
71293
|
-
}
|
|
71294
|
-
}
|
|
71295
|
-
};
|
|
71296
|
-
setViewConfig(newViewConfig);
|
|
71297
|
-
}
|
|
71480
|
+
datasetOptions,
|
|
71481
|
+
dataset,
|
|
71482
|
+
setDataset
|
|
71298
71483
|
}
|
|
71299
71484
|
));
|
|
71300
71485
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BiomarkerSelectAlt.d.ts","sourceRoot":"","sources":["../src/BiomarkerSelectAlt.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BiomarkerSelectAlt.d.ts","sourceRoot":"","sources":["../src/BiomarkerSelectAlt.js"],"names":[],"mappings":"AAQA,oDAiFC"}
|
|
@@ -3,15 +3,23 @@ import React from 'react';
|
|
|
3
3
|
import { Grid } from '@vitessce/styles';
|
|
4
4
|
import { BiomarkerSelectAltGeneAutocomplete } from './BiomarkerSelectAltGeneAutocomplete.js';
|
|
5
5
|
import { BiomarkerSelectAltSampleGroups } from './BiomarkerSelectAltSampleGroups.js';
|
|
6
|
+
import { BiomarkerSelectAltDatasetSelect } from './BiomarkerSelectAltDatasetSelect.js';
|
|
6
7
|
import { useStyles } from './styles.js';
|
|
7
8
|
export function BiomarkerSelectAlt(props) {
|
|
8
|
-
const { setFeatureSelection, setSampleSetFilter, setSampleSetSelection,
|
|
9
|
+
const { setFeatureSelection, setSampleSetFilter, setSampleSetSelection, sampleSetSelection, biomarkerSelection, setBiomarkerSelection, resolvedBiomarker, autocompleteNode, getEdges, stratifications, datasetOptions, dataset, setDataset, } = props;
|
|
9
10
|
const { classes } = useStyles();
|
|
11
|
+
const hasMultipleDatasets = Array.isArray(datasetOptions) && datasetOptions.length > 1;
|
|
10
12
|
return (_jsx(Grid, { container: true, sx: { border: '0px solid red' }, children: _jsxs(Grid, { container: true, size: 12, className: classes.header, children: [_jsx(Grid, { container: true, size: 4, sx: {
|
|
11
13
|
justifyContent: 'flex-end',
|
|
12
|
-
}, children: _jsx(BiomarkerSelectAltGeneAutocomplete, { setFeatureSelection: setFeatureSelection, autocompleteNode: autocompleteNode, getEdges: getEdges,
|
|
14
|
+
}, children: _jsx(BiomarkerSelectAltGeneAutocomplete, { setFeatureSelection: setFeatureSelection, autocompleteNode: autocompleteNode, getEdges: getEdges, biomarkerSelection: biomarkerSelection, setBiomarkerSelection: setBiomarkerSelection, resolvedBiomarker: resolvedBiomarker }) }), hasMultipleDatasets ? (_jsx(Grid, { container: true, size: 4, sx: {
|
|
13
15
|
justifyContent: 'flex-start',
|
|
14
16
|
flexDirection: 'column',
|
|
15
|
-
|
|
17
|
+
minWidth: 0,
|
|
18
|
+
paddingLeft: '8px',
|
|
19
|
+
paddingRight: '8px',
|
|
20
|
+
}, children: _jsx(BiomarkerSelectAltDatasetSelect, { datasetOptions: datasetOptions, dataset: dataset, setDataset: setDataset }) })) : null, _jsx(Grid, { container: true, size: hasMultipleDatasets ? 4 : 5, sx: {
|
|
21
|
+
justifyContent: 'flex-start',
|
|
22
|
+
flexDirection: 'column',
|
|
23
|
+
}, children: _jsx(BiomarkerSelectAltSampleGroups, { setSampleSetFilter: setSampleSetFilter, setSampleSetSelection: setSampleSetSelection, sampleSetSelection: sampleSetSelection, stratifications: stratifications }) })] }) }));
|
|
16
24
|
}
|
|
17
25
|
//# sourceMappingURL=BiomarkerSelectAlt.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BiomarkerSelectAlt.js","sourceRoot":"","sources":["../src/BiomarkerSelectAlt.js"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAC7F,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,MAAM,UAAU,kBAAkB,CAAC,KAAK;IACtC,MAAM,EACJ,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,
|
|
1
|
+
{"version":3,"file":"BiomarkerSelectAlt.js","sourceRoot":"","sources":["../src/BiomarkerSelectAlt.js"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAC7F,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,MAAM,UAAU,kBAAkB,CAAC,KAAK;IACtC,MAAM,EACJ,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAElB,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EAEjB,gBAAgB,EAChB,QAAQ,EAER,eAAe,EAEf,cAAc,EACd,OAAO,EACP,UAAU,GACX,GAAG,KAAK,CAAC;IACV,MAAM,EAAE,OAAO,EAAE,GAAG,SAAS,EAAE,CAAC;IAChC,MAAM,mBAAmB,GAAG,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,CAAC;IAEvF,OAAO,CACL,KAAC,IAAI,IAAC,SAAS,QAAC,EAAE,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,YAC7C,MAAC,IAAI,IAAC,SAAS,QAAC,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,MAAM,aACjD,KAAC,IAAI,IACH,SAAS,QACT,IAAI,EAAE,CAAC,EACP,EAAE,EAAE;wBACF,cAAc,EAAE,UAAU;qBAC3B,YAED,KAAC,kCAAkC,IACjC,mBAAmB,EAAE,mBAAmB,EACxC,gBAAgB,EAAE,gBAAgB,EAClC,QAAQ,EAAE,QAAQ,EAElB,kBAAkB,EAAE,kBAAkB,EACtC,qBAAqB,EAAE,qBAAqB,EAC5C,iBAAiB,EAAE,iBAAiB,GACpC,GACG,EACN,mBAAmB,CAAC,CAAC,CAAC,CACrB,KAAC,IAAI,IACH,SAAS,QACT,IAAI,EAAE,CAAC,EACP,EAAE,EAAE;wBACF,cAAc,EAAE,YAAY;wBAC5B,aAAa,EAAE,QAAQ;wBACvB,QAAQ,EAAE,CAAC;wBACX,WAAW,EAAE,KAAK;wBAClB,YAAY,EAAE,KAAK;qBACpB,YAED,KAAC,+BAA+B,IAC9B,cAAc,EAAE,cAAc,EAC9B,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,GACtB,GACG,CACR,CAAC,CAAC,CAAC,IAAI,EACR,KAAC,IAAI,IACH,SAAS,QACT,IAAI,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EACjC,EAAE,EAAE;wBACF,cAAc,EAAE,YAAY;wBAC5B,aAAa,EAAE,QAAQ;qBACxB,YAED,KAAC,8BAA8B,IAC7B,kBAAkB,EAAE,kBAAkB,EACtC,qBAAqB,EAAE,qBAAqB,EAC5C,kBAAkB,EAAE,kBAAkB,EAEtC,eAAe,EAAE,eAAe,GAChC,GACG,IACF,GACF,CACR,CAAC;AACJ,CAAC"}
|