@vitessce/constants-internal 3.4.12 → 3.5.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 CHANGED
@@ -15,7 +15,8 @@ const ViewType = {
15
15
  OBS_SET_FEATURE_VALUE_DISTRIBUTION: "obsSetFeatureValueDistribution",
16
16
  FEATURE_VALUE_HISTOGRAM: "featureValueHistogram",
17
17
  DOT_PLOT: "dotPlot",
18
- FEATURE_BAR_PLOT: "featureBarPlot"
18
+ FEATURE_BAR_PLOT: "featureBarPlot",
19
+ BIOMARKER_SELECT: "biomarkerSelect"
19
20
  };
20
21
  const DataType = {
21
22
  OBS_LABELS: "obsLabels",
@@ -33,6 +34,24 @@ const DataType = {
33
34
  SAMPLE_SETS: "sampleSets",
34
35
  SAMPLE_EDGES: "sampleEdges"
35
36
  };
37
+ const AsyncFunctionType = {
38
+ // String input (rather than Node input)
39
+ AUTOCOMPLETE_FEATURE: "autocompleteFeature",
40
+ // (partial: string, targetModality: null | 'gene' | 'protein' | 'genomic-region' | 'cell-type') -> list of feature nodes
41
+ TRANSFORM_FEATURE: "transformFeature",
42
+ // (featureNode, targetModality) -> list of feature nodes from target modality
43
+ RELATED_FEATURES: "relatedFeatures",
44
+ // (featureNode) -> list of related feature nodes
45
+ FEATURE_TO_URL: "featureToUrl",
46
+ // (featureNode) -> URL
47
+ FEATURE_TO_INTERVAL: "featureToInterval",
48
+ // (featureNode) -> genomic interval { chr, start, end }
49
+ // Cell2Sentence/LLM-based?
50
+ OBS_SET_TO_FEATURES: "obsSetToFeatures",
51
+ // (cell type node) -> list of feature nodes
52
+ FEATURES_TO_OBS_SET: "featuresToObsSet"
53
+ // (list of feature nodes) -> cell type node
54
+ };
36
55
  const FileType = {
37
56
  // Joint file types
38
57
  ANNDATA_ZARR: "anndata.zarr",
@@ -54,6 +73,9 @@ const FileType = {
54
73
  // OME-Zarr
55
74
  IMAGE_OME_ZARR: "image.ome-zarr",
56
75
  OBS_SEGMENTATIONS_OME_ZARR: "obsSegmentations.ome-zarr",
76
+ // OME-Zarr - Zipped
77
+ IMAGE_OME_ZARR_ZIP: "image.ome-zarr.zip",
78
+ OBS_SEGMENTATIONS_OME_ZARR_ZIP: "obsSegmentations.ome-zarr.zip",
57
79
  // AnnData
58
80
  OBS_FEATURE_MATRIX_ANNDATA_ZARR: "obsFeatureMatrix.anndata.zarr",
59
81
  OBS_FEATURE_COLUMNS_ANNDATA_ZARR: "obsFeatureColumns.anndata.zarr",
@@ -410,6 +432,7 @@ const DATA_TYPE_COORDINATION_VALUE_USAGE = {
410
432
  ]
411
433
  };
412
434
  const ALT_ZARR_STORE_TYPES = {
435
+ // For AnnData:
413
436
  [FileType.OBS_FEATURE_MATRIX_ANNDATA_ZARR]: {
414
437
  zip: FileType.OBS_FEATURE_MATRIX_ANNDATA_ZARR_ZIP,
415
438
  h5ad: FileType.OBS_FEATURE_MATRIX_ANNDATA_H5AD
@@ -453,6 +476,13 @@ const ALT_ZARR_STORE_TYPES = {
453
476
  [FileType.SAMPLE_EDGES_ANNDATA_ZARR]: {
454
477
  zip: FileType.SAMPLE_EDGES_ANNDATA_ZARR_ZIP,
455
478
  h5ad: FileType.SAMPLE_EDGES_ANNDATA_H5AD
479
+ },
480
+ // For OME-Zarr:
481
+ [FileType.IMAGE_OME_ZARR]: {
482
+ zip: FileType.IMAGE_OME_ZARR_ZIP
483
+ },
484
+ [FileType.OBS_SEGMENTATIONS_OME_ZARR]: {
485
+ zip: FileType.OBS_SEGMENTATIONS_OME_ZARR_ZIP
456
486
  }
457
487
  };
458
488
  const AUTO_INDEPENDENT_COORDINATION_TYPES = [
@@ -885,13 +915,18 @@ const COMPONENT_COORDINATION_TYPES = {
885
915
  CoordinationType.OBS_SET_COLOR,
886
916
  CoordinationType.OBS_COLOR_ENCODING,
887
917
  CoordinationType.ADDITIONAL_OBS_SETS
918
+ ],
919
+ [ViewType.BIOMARKER_SELECT]: [
920
+ CoordinationType.FEATURE_SELECTION,
921
+ CoordinationType.SAMPLE_SET_SELECTION
922
+ // TODO: create coordination types for internal state of the biomarker selection view?
888
923
  ]
889
924
  };
890
925
  const note = "This file is autogenerated by .changeset/post-changelog.mjs.";
891
- const version = "3.4.12";
892
- const date = "2024-10-02";
926
+ const version = "3.5.0";
927
+ const date = "2024-11-01";
893
928
  const branch = "changeset-release/main";
894
- const hash = "ce99ac9e";
929
+ const hash = "1eb007aa";
895
930
  const version$1 = {
896
931
  note,
897
932
  version,
@@ -902,6 +937,7 @@ const version$1 = {
902
937
  export {
903
938
  ALT_ZARR_STORE_TYPES,
904
939
  AUTO_INDEPENDENT_COORDINATION_TYPES,
940
+ AsyncFunctionType,
905
941
  COMPONENT_COORDINATION_TYPES,
906
942
  CoordinationType,
907
943
  DATA_TYPE_COORDINATION_VALUE_USAGE,
@@ -18,6 +18,9 @@ export declare const ALT_ZARR_STORE_TYPES: {
18
18
  [x: string]: {
19
19
  zip: string;
20
20
  h5ad: string;
21
+ } | {
22
+ zip: string;
23
+ h5ad?: undefined;
21
24
  };
22
25
  };
23
26
  //# sourceMappingURL=constant-relationships.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constant-relationships.d.ts","sourceRoot":"","sources":["../src/constant-relationships.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;CA+DvC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kCAAkC;;CA6C9C,CAAC;AAKF,eAAO,MAAM,oBAAoB;;;;;CA6ChC,CAAC"}
1
+ {"version":3,"file":"constant-relationships.d.ts","sourceRoot":"","sources":["../src/constant-relationships.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;CA+DvC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kCAAkC;;CA6C9C,CAAC;AAKF,eAAO,MAAM,oBAAoB;;;;;;;;CAqDhC,CAAC"}
@@ -121,6 +121,7 @@ export const DATA_TYPE_COORDINATION_VALUE_USAGE = {
121
121
  // corresponding to alternative store implementations,
122
122
  // to avoid having to rely on file extensions.
123
123
  export const ALT_ZARR_STORE_TYPES = {
124
+ // For AnnData:
124
125
  [FileType.OBS_FEATURE_MATRIX_ANNDATA_ZARR]: {
125
126
  zip: FileType.OBS_FEATURE_MATRIX_ANNDATA_ZARR_ZIP,
126
127
  h5ad: FileType.OBS_FEATURE_MATRIX_ANNDATA_H5AD,
@@ -165,4 +166,11 @@ export const ALT_ZARR_STORE_TYPES = {
165
166
  zip: FileType.SAMPLE_EDGES_ANNDATA_ZARR_ZIP,
166
167
  h5ad: FileType.SAMPLE_EDGES_ANNDATA_H5AD,
167
168
  },
169
+ // For OME-Zarr:
170
+ [FileType.IMAGE_OME_ZARR]: {
171
+ zip: FileType.IMAGE_OME_ZARR_ZIP,
172
+ },
173
+ [FileType.OBS_SEGMENTATIONS_OME_ZARR]: {
174
+ zip: FileType.OBS_SEGMENTATIONS_OME_ZARR_ZIP,
175
+ },
168
176
  };
@@ -21,6 +21,7 @@ export declare const ViewType: {
21
21
  FEATURE_VALUE_HISTOGRAM: string;
22
22
  DOT_PLOT: string;
23
23
  FEATURE_BAR_PLOT: string;
24
+ BIOMARKER_SELECT: string;
24
25
  };
25
26
  export declare const DataType: {
26
27
  OBS_LABELS: string;
@@ -39,8 +40,10 @@ export declare const DataType: {
39
40
  SAMPLE_EDGES: string;
40
41
  };
41
42
  export declare const AsyncFunctionType: {
42
- FEATURE_METADATA: string;
43
- FEATURE_EDGES: string;
43
+ AUTOCOMPLETE_FEATURE: string;
44
+ TRANSFORM_FEATURE: string;
45
+ RELATED_FEATURES: string;
46
+ FEATURE_TO_URL: string;
44
47
  FEATURE_TO_INTERVAL: string;
45
48
  OBS_SET_TO_FEATURES: string;
46
49
  FEATURES_TO_OBS_SET: string;
@@ -63,6 +66,8 @@ export declare const FileType: {
63
66
  SAMPLE_SETS_CSV: string;
64
67
  IMAGE_OME_ZARR: string;
65
68
  OBS_SEGMENTATIONS_OME_ZARR: string;
69
+ IMAGE_OME_ZARR_ZIP: string;
70
+ OBS_SEGMENTATIONS_OME_ZARR_ZIP: string;
66
71
  OBS_FEATURE_MATRIX_ANNDATA_ZARR: string;
67
72
  OBS_FEATURE_COLUMNS_ANNDATA_ZARR: string;
68
73
  OBS_SETS_ANNDATA_ZARR: string;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;CAkBpB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;CAepB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;CAM7B,CAAC;AAGF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqHpB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsH5B,CAAC;AAEF,eAAO,MAAM,MAAM;;;;CAIlB,CAAC;AAEF,eAAO,MAAM,eAAe;;;CAG3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;CAgB3B,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;CAmBpB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;CAepB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;CAY7B,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwHpB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsH5B,CAAC;AAEF,eAAO,MAAM,MAAM;;;;CAIlB,CAAC;AAEF,eAAO,MAAM,eAAe;;;CAG3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;CAgB3B,CAAC"}
@@ -21,6 +21,7 @@ export const ViewType = {
21
21
  FEATURE_VALUE_HISTOGRAM: 'featureValueHistogram',
22
22
  DOT_PLOT: 'dotPlot',
23
23
  FEATURE_BAR_PLOT: 'featureBarPlot',
24
+ BIOMARKER_SELECT: 'biomarkerSelect',
24
25
  };
25
26
  export const DataType = {
26
27
  OBS_LABELS: 'obsLabels',
@@ -39,11 +40,15 @@ export const DataType = {
39
40
  SAMPLE_EDGES: 'sampleEdges',
40
41
  };
41
42
  export const AsyncFunctionType = {
42
- FEATURE_METADATA: 'featureMetadata', // (featureName, featureType) -> metadata object
43
- FEATURE_EDGES: 'featureEdges', // (featureName, featureType, targetFeatureType) -> list of features from target modality
44
- FEATURE_TO_INTERVAL: 'featureToInterval', // (featureName, featureType) -> genomic interval { chr, start, end }
45
- OBS_SET_TO_FEATURES: 'obsSetToFeatures', // (cell type name) -> list of feature names
46
- FEATURES_TO_OBS_SET: 'featuresToObsSet', // (list of feature names) -> cell type name
43
+ // String input (rather than Node input)
44
+ AUTOCOMPLETE_FEATURE: 'autocompleteFeature', // (partial: string, targetModality: null | 'gene' | 'protein' | 'genomic-region' | 'cell-type') -> list of feature nodes
45
+ TRANSFORM_FEATURE: 'transformFeature', // (featureNode, targetModality) -> list of feature nodes from target modality
46
+ RELATED_FEATURES: 'relatedFeatures', // (featureNode) -> list of related feature nodes
47
+ FEATURE_TO_URL: 'featureToUrl', // (featureNode) -> URL
48
+ FEATURE_TO_INTERVAL: 'featureToInterval', // (featureNode) -> genomic interval { chr, start, end }
49
+ // Cell2Sentence/LLM-based?
50
+ OBS_SET_TO_FEATURES: 'obsSetToFeatures', // (cell type node) -> list of feature nodes
51
+ FEATURES_TO_OBS_SET: 'featuresToObsSet', // (list of feature nodes) -> cell type node
47
52
  };
48
53
  export const FileType = {
49
54
  // Joint file types
@@ -66,6 +71,9 @@ export const FileType = {
66
71
  // OME-Zarr
67
72
  IMAGE_OME_ZARR: 'image.ome-zarr',
68
73
  OBS_SEGMENTATIONS_OME_ZARR: 'obsSegmentations.ome-zarr',
74
+ // OME-Zarr - Zipped
75
+ IMAGE_OME_ZARR_ZIP: 'image.ome-zarr.zip',
76
+ OBS_SEGMENTATIONS_OME_ZARR_ZIP: 'obsSegmentations.ome-zarr.zip',
69
77
  // AnnData
70
78
  OBS_FEATURE_MATRIX_ANNDATA_ZARR: 'obsFeatureMatrix.anndata.zarr',
71
79
  OBS_FEATURE_COLUMNS_ANNDATA_ZARR: 'obsFeatureColumns.anndata.zarr',
@@ -1 +1 @@
1
- {"version":3,"file":"coordination.d.ts","sourceRoot":"","sources":["../src/coordination.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,mCAAmC,UAc/C,CAAC;AAEF;;;;;;;KAOK;AACL,eAAO,MAAM,4BAA4B;;;CAgaxC,CAAC"}
1
+ {"version":3,"file":"coordination.d.ts","sourceRoot":"","sources":["../src/coordination.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,mCAAmC,UAc/C,CAAC;AAEF;;;;;;;KAOK;AACL,eAAO,MAAM,4BAA4B;;;CAqaxC,CAAC"}
@@ -445,4 +445,9 @@ export const COMPONENT_COORDINATION_TYPES = {
445
445
  CoordinationType.OBS_COLOR_ENCODING,
446
446
  CoordinationType.ADDITIONAL_OBS_SETS,
447
447
  ],
448
+ [ViewType.BIOMARKER_SELECT]: [
449
+ CoordinationType.FEATURE_SELECTION,
450
+ CoordinationType.SAMPLE_SET_SELECTION,
451
+ // TODO: create coordination types for internal state of the biomarker selection view?
452
+ ],
448
453
  };
@@ -1,5 +1,5 @@
1
- export { ViewType, DataType, FileType, CoordinationType, STATUS, ViewHelpMapping, DescriptionType, } from './constants.js';
1
+ export { ViewType, DataType, FileType, CoordinationType, AsyncFunctionType, ViewHelpMapping, DescriptionType, STATUS, } from './constants.js';
2
2
  export { FILE_TYPE_DATA_TYPE_MAPPING, DATA_TYPE_COORDINATION_VALUE_USAGE, ALT_ZARR_STORE_TYPES, } from './constant-relationships.js';
3
- export { AUTO_INDEPENDENT_COORDINATION_TYPES, COMPONENT_COORDINATION_TYPES } from './coordination.js';
3
+ export { AUTO_INDEPENDENT_COORDINATION_TYPES, COMPONENT_COORDINATION_TYPES, } from './coordination.js';
4
4
  export { default as META_VERSION } from './version.json';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,EAAE,eAAe,EAAE,eAAe,GACzF,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,2BAA2B,EAC3B,kCAAkC,EAClC,oBAAoB,GACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,mCAAmC,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AACtG,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,MAAM,GACP,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,2BAA2B,EAC3B,kCAAkC,EAClC,oBAAoB,GACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,mCAAmC,EACnC,4BAA4B,GAC7B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
package/dist-tsc/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { ViewType, DataType, FileType, CoordinationType, STATUS, ViewHelpMapping, DescriptionType, } from './constants.js';
1
+ export { ViewType, DataType, FileType, CoordinationType, AsyncFunctionType, ViewHelpMapping, DescriptionType, STATUS, } from './constants.js';
2
2
  export { FILE_TYPE_DATA_TYPE_MAPPING, DATA_TYPE_COORDINATION_VALUE_USAGE, ALT_ZARR_STORE_TYPES, } from './constant-relationships.js';
3
- export { AUTO_INDEPENDENT_COORDINATION_TYPES, COMPONENT_COORDINATION_TYPES } from './coordination.js';
3
+ export { AUTO_INDEPENDENT_COORDINATION_TYPES, COMPONENT_COORDINATION_TYPES, } from './coordination.js';
4
4
  export { default as META_VERSION } from './version.json';
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "note": "This file is autogenerated by .changeset/post-changelog.mjs.",
3
- "version": "3.4.12",
4
- "date": "2024-10-02",
3
+ "version": "3.5.0",
4
+ "date": "2024-11-01",
5
5
  "branch": "changeset-release/main",
6
- "hash": "ce99ac9e"
6
+ "hash": "1eb007aa"
7
7
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitessce/constants-internal",
3
- "version": "3.4.12",
4
- "author": "Gehlenborg Lab",
3
+ "version": "3.5.0",
4
+ "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
7
7
  "type": "git",
@@ -126,6 +126,7 @@ export const DATA_TYPE_COORDINATION_VALUE_USAGE = {
126
126
  // corresponding to alternative store implementations,
127
127
  // to avoid having to rely on file extensions.
128
128
  export const ALT_ZARR_STORE_TYPES = {
129
+ // For AnnData:
129
130
  [FileType.OBS_FEATURE_MATRIX_ANNDATA_ZARR]: {
130
131
  zip: FileType.OBS_FEATURE_MATRIX_ANNDATA_ZARR_ZIP,
131
132
  h5ad: FileType.OBS_FEATURE_MATRIX_ANNDATA_H5AD,
@@ -170,4 +171,11 @@ export const ALT_ZARR_STORE_TYPES = {
170
171
  zip: FileType.SAMPLE_EDGES_ANNDATA_ZARR_ZIP,
171
172
  h5ad: FileType.SAMPLE_EDGES_ANNDATA_H5AD,
172
173
  },
174
+ // For OME-Zarr:
175
+ [FileType.IMAGE_OME_ZARR]: {
176
+ zip: FileType.IMAGE_OME_ZARR_ZIP,
177
+ },
178
+ [FileType.OBS_SEGMENTATIONS_OME_ZARR]: {
179
+ zip: FileType.OBS_SEGMENTATIONS_OME_ZARR_ZIP,
180
+ },
173
181
  };
package/src/constants.ts CHANGED
@@ -21,6 +21,7 @@ export const ViewType = {
21
21
  FEATURE_VALUE_HISTOGRAM: 'featureValueHistogram',
22
22
  DOT_PLOT: 'dotPlot',
23
23
  FEATURE_BAR_PLOT: 'featureBarPlot',
24
+ BIOMARKER_SELECT: 'biomarkerSelect',
24
25
  };
25
26
 
26
27
  export const DataType = {
@@ -41,13 +42,18 @@ export const DataType = {
41
42
  };
42
43
 
43
44
  export const AsyncFunctionType = {
44
- FEATURE_METADATA: 'featureMetadata', // (featureName, featureType) -> metadata object
45
- FEATURE_EDGES: 'featureEdges', // (featureName, featureType, targetFeatureType) -> list of features from target modality
46
- FEATURE_TO_INTERVAL: 'featureToInterval', // (featureName, featureType) -> genomic interval { chr, start, end }
47
- OBS_SET_TO_FEATURES: 'obsSetToFeatures', // (cell type name) -> list of feature names
48
- FEATURES_TO_OBS_SET: 'featuresToObsSet', // (list of feature names) -> cell type name
49
- };
45
+ // String input (rather than Node input)
46
+ AUTOCOMPLETE_FEATURE: 'autocompleteFeature', // (partial: string, targetModality: null | 'gene' | 'protein' | 'genomic-region' | 'cell-type') -> list of feature nodes
47
+
48
+ TRANSFORM_FEATURE: 'transformFeature', // (featureNode, targetModality) -> list of feature nodes from target modality
49
+ RELATED_FEATURES: 'relatedFeatures', // (featureNode) -> list of related feature nodes
50
+ FEATURE_TO_URL: 'featureToUrl', // (featureNode) -> URL
51
+ FEATURE_TO_INTERVAL: 'featureToInterval', // (featureNode) -> genomic interval { chr, start, end }
50
52
 
53
+ // Cell2Sentence/LLM-based?
54
+ OBS_SET_TO_FEATURES: 'obsSetToFeatures', // (cell type node) -> list of feature nodes
55
+ FEATURES_TO_OBS_SET: 'featuresToObsSet', // (list of feature nodes) -> cell type node
56
+ };
51
57
 
52
58
  export const FileType = {
53
59
  // Joint file types
@@ -70,6 +76,9 @@ export const FileType = {
70
76
  // OME-Zarr
71
77
  IMAGE_OME_ZARR: 'image.ome-zarr',
72
78
  OBS_SEGMENTATIONS_OME_ZARR: 'obsSegmentations.ome-zarr',
79
+ // OME-Zarr - Zipped
80
+ IMAGE_OME_ZARR_ZIP: 'image.ome-zarr.zip',
81
+ OBS_SEGMENTATIONS_OME_ZARR_ZIP: 'obsSegmentations.ome-zarr.zip',
73
82
  // AnnData
74
83
  OBS_FEATURE_MATRIX_ANNDATA_ZARR: 'obsFeatureMatrix.anndata.zarr',
75
84
  OBS_FEATURE_COLUMNS_ANNDATA_ZARR: 'obsFeatureColumns.anndata.zarr',
@@ -447,4 +447,9 @@ export const COMPONENT_COORDINATION_TYPES = {
447
447
  CoordinationType.OBS_COLOR_ENCODING,
448
448
  CoordinationType.ADDITIONAL_OBS_SETS,
449
449
  ],
450
+ [ViewType.BIOMARKER_SELECT]: [
451
+ CoordinationType.FEATURE_SELECTION,
452
+ CoordinationType.SAMPLE_SET_SELECTION,
453
+ // TODO: create coordination types for internal state of the biomarker selection view?
454
+ ],
450
455
  };
package/src/index.ts CHANGED
@@ -1,10 +1,20 @@
1
1
  export {
2
- ViewType, DataType, FileType, CoordinationType, STATUS, ViewHelpMapping, DescriptionType,
2
+ ViewType,
3
+ DataType,
4
+ FileType,
5
+ CoordinationType,
6
+ AsyncFunctionType,
7
+ ViewHelpMapping,
8
+ DescriptionType,
9
+ STATUS,
3
10
  } from './constants.js';
4
11
  export {
5
12
  FILE_TYPE_DATA_TYPE_MAPPING,
6
13
  DATA_TYPE_COORDINATION_VALUE_USAGE,
7
14
  ALT_ZARR_STORE_TYPES,
8
15
  } from './constant-relationships.js';
9
- export { AUTO_INDEPENDENT_COORDINATION_TYPES, COMPONENT_COORDINATION_TYPES } from './coordination.js';
16
+ export {
17
+ AUTO_INDEPENDENT_COORDINATION_TYPES,
18
+ COMPONENT_COORDINATION_TYPES,
19
+ } from './coordination.js';
10
20
  export { default as META_VERSION } from './version.json';
package/src/version.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "note": "This file is autogenerated by .changeset/post-changelog.mjs.",
3
- "version": "3.4.12",
4
- "date": "2024-10-02",
3
+ "version": "3.5.0",
4
+ "date": "2024-11-01",
5
5
  "branch": "changeset-release/main",
6
- "hash": "ce99ac9e"
6
+ "hash": "1eb007aa"
7
7
  }