@vitessce/constants-internal 3.4.10 → 3.4.12
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 +22 -3
- package/dist-tsc/constants.d.ts +22 -0
- package/dist-tsc/constants.d.ts.map +1 -1
- package/dist-tsc/constants.js +22 -0
- package/dist-tsc/index.d.ts +1 -1
- package/dist-tsc/index.d.ts.map +1 -1
- package/dist-tsc/index.js +1 -1
- package/dist-tsc/version.json +3 -3
- package/package.json +1 -1
- package/src/constants.ts +23 -0
- package/src/index.ts +1 -1
- package/src/version.json +3 -3
package/dist/index.js
CHANGED
|
@@ -160,6 +160,7 @@ const CoordinationType = {
|
|
|
160
160
|
FEATURE_TYPE: "featureType",
|
|
161
161
|
FEATURE_VALUE_TYPE: "featureValueType",
|
|
162
162
|
OBS_LABELS_TYPE: "obsLabelsType",
|
|
163
|
+
FEATURE_LABELS_TYPE: "featureLabelsType",
|
|
163
164
|
// Other types
|
|
164
165
|
EMBEDDING_TYPE: "embeddingType",
|
|
165
166
|
EMBEDDING_ZOOM: "embeddingZoom",
|
|
@@ -283,6 +284,23 @@ const DescriptionType = {
|
|
|
283
284
|
PLAIN: "plain",
|
|
284
285
|
MARKDOWN: "markdown"
|
|
285
286
|
};
|
|
287
|
+
const ViewHelpMapping = {
|
|
288
|
+
SCATTERPLOT: "The scatterplot displays two-dimensional (pre-computed) dimensionality reduction results (such as from t-SNE or UMAP). Each point on the scatterplot represents an observation (e.g., cell).",
|
|
289
|
+
HEATMAP: "The heatmap displays an observation-by-feature (e.g., cell-by-gene) matrix, typically with transformed (e.g., normalized or standardized) values.",
|
|
290
|
+
SPATIAL: "The spatial view displays (potentially layered) spatially-resolved data including RGB or multiplexed images, segmentations of observations (bitmask- or polygon-based), and/or points (e.g., representing FISH transcripts).",
|
|
291
|
+
DESCRIPTION: "The description view displays additional information about a dataset. When images are included in a dataset, the description view also includes image metadata (if contained in the image files).",
|
|
292
|
+
STATUS: "The status view displays debugging messages, including app-wide error messages when datasets fail to load or when schemas fail to validate. Details about the entity under the mouse cursor (cell, gene, and/or molecule) are displayed during hover interactions.",
|
|
293
|
+
LAYER_CONTROLLER: "The spatial layer controller provides an interface for manipulating the visualization layers displayed in the spatial view.",
|
|
294
|
+
GENOMIC_PROFILES: "The genomic profiles view displays genome browser tracks (using the genomic-profiles data type) containing bar plots, where the genome is along the x-axis and the value at each genome position is encoded with a bar along the y-axis.",
|
|
295
|
+
GATING: "The gating scatterplot displays expression data for two genes (along the X and Y axes). Users can select two genes, and the scatterplot is dynamically generated using observation-by-feature matrix data. Gating can then be performed by using the lasso or box select tools.",
|
|
296
|
+
FEATURE_LIST: "The feature list controller displays an interactive list of features (e.g., genes).",
|
|
297
|
+
OBS_SETS: "The observation sets controller displays an interactive list of (potentially hierarchical) observation sets (e.g., cell clusters or cell type annotations).",
|
|
298
|
+
OBS_SET_SIZES: "The observation set sizes view displays a bar plot with the currently-selected observation sets (e.g., cell types) on the x-axis and bars representing their size (e.g., number of cells) on the y-axis.",
|
|
299
|
+
OBS_SET_FEATURE_VALUE_DISTRIBUTION: "The observation set feature value distribution view displays a violin plot with values (e.g., expression values) per set (e.g., cell type) for the selected feature (e.g., gene).",
|
|
300
|
+
FEATURE_VALUE_HISTOGRAM: "The feature value histogram displays the distribution of values (e.g., expression) for the selected feature (e.g., gene).",
|
|
301
|
+
DOT_PLOT: "The dot plot displays summary information about expression of the selected features (e.g., genes) for each selected observation set (e.g., cell type).",
|
|
302
|
+
FEATURE_BAR_PLOT: "The feature bar plot displays one bar per observation (e.g., cell) along the x-axis, where the value of a selected feature (e.g., gene) is encoded along the y-axis."
|
|
303
|
+
};
|
|
286
304
|
const FILE_TYPE_DATA_TYPE_MAPPING = {
|
|
287
305
|
// For new file types
|
|
288
306
|
[FileType.OBS_EMBEDDING_CSV]: DataType.OBS_EMBEDDING,
|
|
@@ -870,10 +888,10 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
870
888
|
]
|
|
871
889
|
};
|
|
872
890
|
const note = "This file is autogenerated by .changeset/post-changelog.mjs.";
|
|
873
|
-
const version = "3.4.
|
|
874
|
-
const date = "2024-
|
|
891
|
+
const version = "3.4.12";
|
|
892
|
+
const date = "2024-10-02";
|
|
875
893
|
const branch = "changeset-release/main";
|
|
876
|
-
const hash = "
|
|
894
|
+
const hash = "ce99ac9e";
|
|
877
895
|
const version$1 = {
|
|
878
896
|
note,
|
|
879
897
|
version,
|
|
@@ -893,5 +911,6 @@ export {
|
|
|
893
911
|
FileType,
|
|
894
912
|
version$1 as META_VERSION,
|
|
895
913
|
STATUS,
|
|
914
|
+
ViewHelpMapping,
|
|
896
915
|
ViewType
|
|
897
916
|
};
|
package/dist-tsc/constants.d.ts
CHANGED
|
@@ -153,6 +153,7 @@ export declare const CoordinationType: {
|
|
|
153
153
|
FEATURE_TYPE: string;
|
|
154
154
|
FEATURE_VALUE_TYPE: string;
|
|
155
155
|
OBS_LABELS_TYPE: string;
|
|
156
|
+
FEATURE_LABELS_TYPE: string;
|
|
156
157
|
EMBEDDING_TYPE: string;
|
|
157
158
|
EMBEDDING_ZOOM: string;
|
|
158
159
|
EMBEDDING_ROTATION: string;
|
|
@@ -265,4 +266,25 @@ export declare const DescriptionType: {
|
|
|
265
266
|
PLAIN: string;
|
|
266
267
|
MARKDOWN: string;
|
|
267
268
|
};
|
|
269
|
+
/**
|
|
270
|
+
* Constants representing the help text for
|
|
271
|
+
* each view.
|
|
272
|
+
*/
|
|
273
|
+
export declare const ViewHelpMapping: {
|
|
274
|
+
SCATTERPLOT: string;
|
|
275
|
+
HEATMAP: string;
|
|
276
|
+
SPATIAL: string;
|
|
277
|
+
DESCRIPTION: string;
|
|
278
|
+
STATUS: string;
|
|
279
|
+
LAYER_CONTROLLER: string;
|
|
280
|
+
GENOMIC_PROFILES: string;
|
|
281
|
+
GATING: string;
|
|
282
|
+
FEATURE_LIST: string;
|
|
283
|
+
OBS_SETS: string;
|
|
284
|
+
OBS_SET_SIZES: string;
|
|
285
|
+
OBS_SET_FEATURE_VALUE_DISTRIBUTION: string;
|
|
286
|
+
FEATURE_VALUE_HISTOGRAM: string;
|
|
287
|
+
DOT_PLOT: string;
|
|
288
|
+
FEATURE_BAR_PLOT: string;
|
|
289
|
+
};
|
|
268
290
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -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
|
|
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"}
|
package/dist-tsc/constants.js
CHANGED
|
@@ -176,6 +176,7 @@ export const CoordinationType = {
|
|
|
176
176
|
FEATURE_TYPE: 'featureType',
|
|
177
177
|
FEATURE_VALUE_TYPE: 'featureValueType',
|
|
178
178
|
OBS_LABELS_TYPE: 'obsLabelsType',
|
|
179
|
+
FEATURE_LABELS_TYPE: 'featureLabelsType',
|
|
179
180
|
// Other types
|
|
180
181
|
EMBEDDING_TYPE: 'embeddingType',
|
|
181
182
|
EMBEDDING_ZOOM: 'embeddingZoom',
|
|
@@ -294,3 +295,24 @@ export const DescriptionType = {
|
|
|
294
295
|
PLAIN: 'plain',
|
|
295
296
|
MARKDOWN: 'markdown',
|
|
296
297
|
};
|
|
298
|
+
/**
|
|
299
|
+
* Constants representing the help text for
|
|
300
|
+
* each view.
|
|
301
|
+
*/
|
|
302
|
+
export const ViewHelpMapping = {
|
|
303
|
+
SCATTERPLOT: 'The scatterplot displays two-dimensional (pre-computed) dimensionality reduction results (such as from t-SNE or UMAP). Each point on the scatterplot represents an observation (e.g., cell).',
|
|
304
|
+
HEATMAP: 'The heatmap displays an observation-by-feature (e.g., cell-by-gene) matrix, typically with transformed (e.g., normalized or standardized) values.',
|
|
305
|
+
SPATIAL: 'The spatial view displays (potentially layered) spatially-resolved data including RGB or multiplexed images, segmentations of observations (bitmask- or polygon-based), and/or points (e.g., representing FISH transcripts).',
|
|
306
|
+
DESCRIPTION: 'The description view displays additional information about a dataset. When images are included in a dataset, the description view also includes image metadata (if contained in the image files).',
|
|
307
|
+
STATUS: 'The status view displays debugging messages, including app-wide error messages when datasets fail to load or when schemas fail to validate. Details about the entity under the mouse cursor (cell, gene, and/or molecule) are displayed during hover interactions.',
|
|
308
|
+
LAYER_CONTROLLER: 'The spatial layer controller provides an interface for manipulating the visualization layers displayed in the spatial view.',
|
|
309
|
+
GENOMIC_PROFILES: 'The genomic profiles view displays genome browser tracks (using the genomic-profiles data type) containing bar plots, where the genome is along the x-axis and the value at each genome position is encoded with a bar along the y-axis.',
|
|
310
|
+
GATING: 'The gating scatterplot displays expression data for two genes (along the X and Y axes). Users can select two genes, and the scatterplot is dynamically generated using observation-by-feature matrix data. Gating can then be performed by using the lasso or box select tools.',
|
|
311
|
+
FEATURE_LIST: 'The feature list controller displays an interactive list of features (e.g., genes).',
|
|
312
|
+
OBS_SETS: 'The observation sets controller displays an interactive list of (potentially hierarchical) observation sets (e.g., cell clusters or cell type annotations).',
|
|
313
|
+
OBS_SET_SIZES: 'The observation set sizes view displays a bar plot with the currently-selected observation sets (e.g., cell types) on the x-axis and bars representing their size (e.g., number of cells) on the y-axis.',
|
|
314
|
+
OBS_SET_FEATURE_VALUE_DISTRIBUTION: 'The observation set feature value distribution view displays a violin plot with values (e.g., expression values) per set (e.g., cell type) for the selected feature (e.g., gene).',
|
|
315
|
+
FEATURE_VALUE_HISTOGRAM: 'The feature value histogram displays the distribution of values (e.g., expression) for the selected feature (e.g., gene).',
|
|
316
|
+
DOT_PLOT: 'The dot plot displays summary information about expression of the selected features (e.g., genes) for each selected observation set (e.g., cell type).',
|
|
317
|
+
FEATURE_BAR_PLOT: 'The feature bar plot displays one bar per observation (e.g., cell) along the x-axis, where the value of a selected feature (e.g., gene) is encoded along the y-axis.',
|
|
318
|
+
};
|
package/dist-tsc/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ViewType, DataType, FileType, CoordinationType, STATUS, DescriptionType, } from './constants.js';
|
|
1
|
+
export { ViewType, DataType, FileType, CoordinationType, STATUS, ViewHelpMapping, DescriptionType, } 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
3
|
export { AUTO_INDEPENDENT_COORDINATION_TYPES, COMPONENT_COORDINATION_TYPES } from './coordination.js';
|
|
4
4
|
export { default as META_VERSION } from './version.json';
|
package/dist-tsc/index.d.ts.map
CHANGED
|
@@ -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,
|
|
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"}
|
package/dist-tsc/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ViewType, DataType, FileType, CoordinationType, STATUS, DescriptionType, } from './constants.js';
|
|
1
|
+
export { ViewType, DataType, FileType, CoordinationType, STATUS, ViewHelpMapping, DescriptionType, } 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
3
|
export { AUTO_INDEPENDENT_COORDINATION_TYPES, COMPONENT_COORDINATION_TYPES } from './coordination.js';
|
|
4
4
|
export { default as META_VERSION } from './version.json';
|
package/dist-tsc/version.json
CHANGED
package/package.json
CHANGED
package/src/constants.ts
CHANGED
|
@@ -181,6 +181,7 @@ export const CoordinationType = {
|
|
|
181
181
|
FEATURE_TYPE: 'featureType',
|
|
182
182
|
FEATURE_VALUE_TYPE: 'featureValueType',
|
|
183
183
|
OBS_LABELS_TYPE: 'obsLabelsType',
|
|
184
|
+
FEATURE_LABELS_TYPE: 'featureLabelsType',
|
|
184
185
|
// Other types
|
|
185
186
|
EMBEDDING_TYPE: 'embeddingType',
|
|
186
187
|
EMBEDDING_ZOOM: 'embeddingZoom',
|
|
@@ -301,3 +302,25 @@ export const DescriptionType = {
|
|
|
301
302
|
PLAIN: 'plain',
|
|
302
303
|
MARKDOWN: 'markdown',
|
|
303
304
|
};
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Constants representing the help text for
|
|
308
|
+
* each view.
|
|
309
|
+
*/
|
|
310
|
+
export const ViewHelpMapping = {
|
|
311
|
+
SCATTERPLOT: 'The scatterplot displays two-dimensional (pre-computed) dimensionality reduction results (such as from t-SNE or UMAP). Each point on the scatterplot represents an observation (e.g., cell).',
|
|
312
|
+
HEATMAP: 'The heatmap displays an observation-by-feature (e.g., cell-by-gene) matrix, typically with transformed (e.g., normalized or standardized) values.',
|
|
313
|
+
SPATIAL: 'The spatial view displays (potentially layered) spatially-resolved data including RGB or multiplexed images, segmentations of observations (bitmask- or polygon-based), and/or points (e.g., representing FISH transcripts).',
|
|
314
|
+
DESCRIPTION: 'The description view displays additional information about a dataset. When images are included in a dataset, the description view also includes image metadata (if contained in the image files).',
|
|
315
|
+
STATUS: 'The status view displays debugging messages, including app-wide error messages when datasets fail to load or when schemas fail to validate. Details about the entity under the mouse cursor (cell, gene, and/or molecule) are displayed during hover interactions.',
|
|
316
|
+
LAYER_CONTROLLER: 'The spatial layer controller provides an interface for manipulating the visualization layers displayed in the spatial view.',
|
|
317
|
+
GENOMIC_PROFILES: 'The genomic profiles view displays genome browser tracks (using the genomic-profiles data type) containing bar plots, where the genome is along the x-axis and the value at each genome position is encoded with a bar along the y-axis.',
|
|
318
|
+
GATING: 'The gating scatterplot displays expression data for two genes (along the X and Y axes). Users can select two genes, and the scatterplot is dynamically generated using observation-by-feature matrix data. Gating can then be performed by using the lasso or box select tools.',
|
|
319
|
+
FEATURE_LIST: 'The feature list controller displays an interactive list of features (e.g., genes).',
|
|
320
|
+
OBS_SETS: 'The observation sets controller displays an interactive list of (potentially hierarchical) observation sets (e.g., cell clusters or cell type annotations).',
|
|
321
|
+
OBS_SET_SIZES: 'The observation set sizes view displays a bar plot with the currently-selected observation sets (e.g., cell types) on the x-axis and bars representing their size (e.g., number of cells) on the y-axis.',
|
|
322
|
+
OBS_SET_FEATURE_VALUE_DISTRIBUTION: 'The observation set feature value distribution view displays a violin plot with values (e.g., expression values) per set (e.g., cell type) for the selected feature (e.g., gene).',
|
|
323
|
+
FEATURE_VALUE_HISTOGRAM: 'The feature value histogram displays the distribution of values (e.g., expression) for the selected feature (e.g., gene).',
|
|
324
|
+
DOT_PLOT: 'The dot plot displays summary information about expression of the selected features (e.g., genes) for each selected observation set (e.g., cell type).',
|
|
325
|
+
FEATURE_BAR_PLOT: 'The feature bar plot displays one bar per observation (e.g., cell) along the x-axis, where the value of a selected feature (e.g., gene) is encoded along the y-axis.',
|
|
326
|
+
};
|
package/src/index.ts
CHANGED
package/src/version.json
CHANGED