@vitessce/all 3.4.6 → 3.4.7

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.
@@ -82,6 +82,7 @@ import {
82
82
  CellSetExpressionPlotSubscriber,
83
83
  CellSetSizesPlotSubscriber,
84
84
  ExpressionHistogramSubscriber,
85
+ DotPlotSubscriber,
85
86
  FeatureBarPlotSubscriber,
86
87
  } from '@vitessce/statistical-plots';
87
88
 
@@ -212,6 +213,7 @@ export const baseViewTypes = [
212
213
  makeViewType(ViewType.FEATURE_BAR_PLOT, FeatureBarPlotSubscriber),
213
214
  makeViewType('higlass', HiGlassSubscriber),
214
215
  makeViewType(ViewType.GENOMIC_PROFILES, GenomicProfilesSubscriber),
216
+ makeViewType(ViewType.DOT_PLOT, DotPlotSubscriber),
215
217
  ];
216
218
 
217
219
  export const baseFileTypes = [
@@ -414,6 +416,11 @@ export const baseCoordinationTypes = [
414
416
  1,
415
417
  z.number(),
416
418
  ),
419
+ new PluginCoordinationType(
420
+ CoordinationType.FEATURE_VALUE_POSITIVITY_THRESHOLD,
421
+ 0,
422
+ z.number(),
423
+ ),
417
424
  new PluginCoordinationType(
418
425
  CoordinationType.TOOLTIPS_VISIBLE,
419
426
  true,
@@ -484,6 +491,21 @@ export const baseCoordinationTypes = [
484
491
  new PluginCoordinationType(CoordinationType.SPATIAL_CHANNEL_LABELS_VISIBLE, true, z.boolean()),
485
492
  new PluginCoordinationType(CoordinationType.SPATIAL_CHANNEL_LABELS_ORIENTATION, 'vertical', z.enum(['vertical', 'horizontal'])),
486
493
  new PluginCoordinationType(CoordinationType.SPATIAL_CHANNEL_LABEL_SIZE, 14, z.number()),
487
- new PluginCoordinationType(CoordinationType.SAMPLE_TYPE, null, z.string().nullable()),
488
- new PluginCoordinationType(CoordinationType.SAMPLE_SET_SELECTION, null, z.array(z.string()).nullable()),
494
+ new PluginCoordinationType(CoordinationType.SAMPLE_TYPE, 'sample', z.string().nullable()),
495
+ // TODO: remove one array level and use multi-coordination for sampleSetSelection?
496
+ new PluginCoordinationType(CoordinationType.SAMPLE_SET_SELECTION, null, z.array(z.array(z.string())).nullable()),
497
+ new PluginCoordinationType(
498
+ CoordinationType.SAMPLE_SET_COLOR,
499
+ null,
500
+ z.array(z.object({
501
+ path: obsSetPath,
502
+ color: rgbArray,
503
+ })).nullable(),
504
+ ),
505
+ new PluginCoordinationType(CoordinationType.EMBEDDING_POINTS_VISIBLE, true, z.boolean()),
506
+ new PluginCoordinationType(CoordinationType.EMBEDDING_CONTOURS_VISIBLE, false, z.boolean()),
507
+ new PluginCoordinationType(CoordinationType.EMBEDDING_CONTOURS_FILLED, true, z.boolean()),
508
+ new PluginCoordinationType(CoordinationType.EMBEDDING_CONTOUR_PERCENTILES, null, z.array(z.number()).nullable()),
509
+ new PluginCoordinationType(CoordinationType.CONTOUR_COLOR_ENCODING, 'cellSetSelection', z.enum(['cellSetSelection', 'sampleSetSelection', 'contourColor'])),
510
+ new PluginCoordinationType(CoordinationType.CONTOUR_COLOR, null, rgbArray.nullable()),
489
511
  ];
package/src/index.ts CHANGED
@@ -4,6 +4,7 @@ export {
4
4
  PluginViewType,
5
5
  PluginCoordinationType,
6
6
  PluginJointFileType,
7
+ PluginAsyncFunction,
7
8
  } from '@vitessce/plugins';
8
9
  export { z } from '@vitessce/schemas';
9
10
  export { useCoordination } from '@vitessce/vit-s';
@@ -192,6 +192,17 @@ export function expandAnndataZarr(fileDef: z.infer<typeof latestFileDefSchema>)
192
192
  },
193
193
  }]
194
194
  ) : []),
195
+ // sampleEdges
196
+ ...(options.sampleEdges ? [{
197
+ ...baseFileDef,
198
+ fileType: getFileType(FileType.SAMPLE_EDGES_ANNDATA_ZARR),
199
+ options: options.sampleEdges,
200
+ coordinationValues: {
201
+ ...extraCoordinationValues,
202
+ obsType: baseFileDef.coordinationValues.obsType,
203
+ sampleType: fileDef.coordinationValues?.sampleType || 'sample',
204
+ },
205
+ }] : []),
195
206
  ];
196
207
  }
197
208