@vitessce/schemas 3.5.6 → 3.5.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.
- package/dist/index.js +269 -5
- package/dist-tsc/file-def-options.d.ts +29 -2
- package/dist-tsc/file-def-options.d.ts.map +1 -1
- package/dist-tsc/file-def-options.js +4 -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/previous-config-upgraders.d.ts.map +1 -1
- package/dist-tsc/previous-config-upgraders.js +3 -2
- package/package.json +6 -5
- package/src/file-def-options.ts +4 -0
- package/src/index.ts +1 -0
- package/src/previous-config-upgraders.ts +3 -2
package/dist/index.js
CHANGED
|
@@ -5250,6 +5250,258 @@ function getNextScope(prevScopes) {
|
|
|
5250
5250
|
} while (prevScopes.includes(nextScope));
|
|
5251
5251
|
return nextScope;
|
|
5252
5252
|
}
|
|
5253
|
+
var loglevel = { exports: {} };
|
|
5254
|
+
(function(module2) {
|
|
5255
|
+
(function(root2, definition) {
|
|
5256
|
+
if (module2.exports) {
|
|
5257
|
+
module2.exports = definition();
|
|
5258
|
+
} else {
|
|
5259
|
+
root2.log = definition();
|
|
5260
|
+
}
|
|
5261
|
+
})(commonjsGlobal, function() {
|
|
5262
|
+
var noop = function() {
|
|
5263
|
+
};
|
|
5264
|
+
var undefinedType2 = "undefined";
|
|
5265
|
+
var isIE = typeof window !== undefinedType2 && typeof window.navigator !== undefinedType2 && /Trident\/|MSIE /.test(window.navigator.userAgent);
|
|
5266
|
+
var logMethods = [
|
|
5267
|
+
"trace",
|
|
5268
|
+
"debug",
|
|
5269
|
+
"info",
|
|
5270
|
+
"warn",
|
|
5271
|
+
"error"
|
|
5272
|
+
];
|
|
5273
|
+
var _loggersByName = {};
|
|
5274
|
+
var defaultLogger = null;
|
|
5275
|
+
function bindMethod(obj, methodName) {
|
|
5276
|
+
var method = obj[methodName];
|
|
5277
|
+
if (typeof method.bind === "function") {
|
|
5278
|
+
return method.bind(obj);
|
|
5279
|
+
} else {
|
|
5280
|
+
try {
|
|
5281
|
+
return Function.prototype.bind.call(method, obj);
|
|
5282
|
+
} catch (e) {
|
|
5283
|
+
return function() {
|
|
5284
|
+
return Function.prototype.apply.apply(method, [obj, arguments]);
|
|
5285
|
+
};
|
|
5286
|
+
}
|
|
5287
|
+
}
|
|
5288
|
+
}
|
|
5289
|
+
function traceForIE() {
|
|
5290
|
+
if (console.log) {
|
|
5291
|
+
if (console.log.apply) {
|
|
5292
|
+
console.log.apply(console, arguments);
|
|
5293
|
+
} else {
|
|
5294
|
+
Function.prototype.apply.apply(console.log, [console, arguments]);
|
|
5295
|
+
}
|
|
5296
|
+
}
|
|
5297
|
+
if (console.trace)
|
|
5298
|
+
console.trace();
|
|
5299
|
+
}
|
|
5300
|
+
function realMethod(methodName) {
|
|
5301
|
+
if (methodName === "debug") {
|
|
5302
|
+
methodName = "log";
|
|
5303
|
+
}
|
|
5304
|
+
if (typeof console === undefinedType2) {
|
|
5305
|
+
return false;
|
|
5306
|
+
} else if (methodName === "trace" && isIE) {
|
|
5307
|
+
return traceForIE;
|
|
5308
|
+
} else if (console[methodName] !== void 0) {
|
|
5309
|
+
return bindMethod(console, methodName);
|
|
5310
|
+
} else if (console.log !== void 0) {
|
|
5311
|
+
return bindMethod(console, "log");
|
|
5312
|
+
} else {
|
|
5313
|
+
return noop;
|
|
5314
|
+
}
|
|
5315
|
+
}
|
|
5316
|
+
function replaceLoggingMethods() {
|
|
5317
|
+
var level = this.getLevel();
|
|
5318
|
+
for (var i = 0; i < logMethods.length; i++) {
|
|
5319
|
+
var methodName = logMethods[i];
|
|
5320
|
+
this[methodName] = i < level ? noop : this.methodFactory(methodName, level, this.name);
|
|
5321
|
+
}
|
|
5322
|
+
this.log = this.debug;
|
|
5323
|
+
if (typeof console === undefinedType2 && level < this.levels.SILENT) {
|
|
5324
|
+
return "No console available for logging";
|
|
5325
|
+
}
|
|
5326
|
+
}
|
|
5327
|
+
function enableLoggingWhenConsoleArrives(methodName) {
|
|
5328
|
+
return function() {
|
|
5329
|
+
if (typeof console !== undefinedType2) {
|
|
5330
|
+
replaceLoggingMethods.call(this);
|
|
5331
|
+
this[methodName].apply(this, arguments);
|
|
5332
|
+
}
|
|
5333
|
+
};
|
|
5334
|
+
}
|
|
5335
|
+
function defaultMethodFactory(methodName, _level, _loggerName) {
|
|
5336
|
+
return realMethod(methodName) || enableLoggingWhenConsoleArrives.apply(this, arguments);
|
|
5337
|
+
}
|
|
5338
|
+
function Logger(name, factory) {
|
|
5339
|
+
var self2 = this;
|
|
5340
|
+
var inheritedLevel;
|
|
5341
|
+
var defaultLevel;
|
|
5342
|
+
var userLevel;
|
|
5343
|
+
var storageKey = "loglevel";
|
|
5344
|
+
if (typeof name === "string") {
|
|
5345
|
+
storageKey += ":" + name;
|
|
5346
|
+
} else if (typeof name === "symbol") {
|
|
5347
|
+
storageKey = void 0;
|
|
5348
|
+
}
|
|
5349
|
+
function persistLevelIfPossible(levelNum) {
|
|
5350
|
+
var levelName = (logMethods[levelNum] || "silent").toUpperCase();
|
|
5351
|
+
if (typeof window === undefinedType2 || !storageKey)
|
|
5352
|
+
return;
|
|
5353
|
+
try {
|
|
5354
|
+
window.localStorage[storageKey] = levelName;
|
|
5355
|
+
return;
|
|
5356
|
+
} catch (ignore) {
|
|
5357
|
+
}
|
|
5358
|
+
try {
|
|
5359
|
+
window.document.cookie = encodeURIComponent(storageKey) + "=" + levelName + ";";
|
|
5360
|
+
} catch (ignore) {
|
|
5361
|
+
}
|
|
5362
|
+
}
|
|
5363
|
+
function getPersistedLevel() {
|
|
5364
|
+
var storedLevel;
|
|
5365
|
+
if (typeof window === undefinedType2 || !storageKey)
|
|
5366
|
+
return;
|
|
5367
|
+
try {
|
|
5368
|
+
storedLevel = window.localStorage[storageKey];
|
|
5369
|
+
} catch (ignore) {
|
|
5370
|
+
}
|
|
5371
|
+
if (typeof storedLevel === undefinedType2) {
|
|
5372
|
+
try {
|
|
5373
|
+
var cookie = window.document.cookie;
|
|
5374
|
+
var cookieName = encodeURIComponent(storageKey);
|
|
5375
|
+
var location = cookie.indexOf(cookieName + "=");
|
|
5376
|
+
if (location !== -1) {
|
|
5377
|
+
storedLevel = /^([^;]+)/.exec(
|
|
5378
|
+
cookie.slice(location + cookieName.length + 1)
|
|
5379
|
+
)[1];
|
|
5380
|
+
}
|
|
5381
|
+
} catch (ignore) {
|
|
5382
|
+
}
|
|
5383
|
+
}
|
|
5384
|
+
if (self2.levels[storedLevel] === void 0) {
|
|
5385
|
+
storedLevel = void 0;
|
|
5386
|
+
}
|
|
5387
|
+
return storedLevel;
|
|
5388
|
+
}
|
|
5389
|
+
function clearPersistedLevel() {
|
|
5390
|
+
if (typeof window === undefinedType2 || !storageKey)
|
|
5391
|
+
return;
|
|
5392
|
+
try {
|
|
5393
|
+
window.localStorage.removeItem(storageKey);
|
|
5394
|
+
} catch (ignore) {
|
|
5395
|
+
}
|
|
5396
|
+
try {
|
|
5397
|
+
window.document.cookie = encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
|
|
5398
|
+
} catch (ignore) {
|
|
5399
|
+
}
|
|
5400
|
+
}
|
|
5401
|
+
function normalizeLevel(input) {
|
|
5402
|
+
var level = input;
|
|
5403
|
+
if (typeof level === "string" && self2.levels[level.toUpperCase()] !== void 0) {
|
|
5404
|
+
level = self2.levels[level.toUpperCase()];
|
|
5405
|
+
}
|
|
5406
|
+
if (typeof level === "number" && level >= 0 && level <= self2.levels.SILENT) {
|
|
5407
|
+
return level;
|
|
5408
|
+
} else {
|
|
5409
|
+
throw new TypeError("log.setLevel() called with invalid level: " + input);
|
|
5410
|
+
}
|
|
5411
|
+
}
|
|
5412
|
+
self2.name = name;
|
|
5413
|
+
self2.levels = {
|
|
5414
|
+
"TRACE": 0,
|
|
5415
|
+
"DEBUG": 1,
|
|
5416
|
+
"INFO": 2,
|
|
5417
|
+
"WARN": 3,
|
|
5418
|
+
"ERROR": 4,
|
|
5419
|
+
"SILENT": 5
|
|
5420
|
+
};
|
|
5421
|
+
self2.methodFactory = factory || defaultMethodFactory;
|
|
5422
|
+
self2.getLevel = function() {
|
|
5423
|
+
if (userLevel != null) {
|
|
5424
|
+
return userLevel;
|
|
5425
|
+
} else if (defaultLevel != null) {
|
|
5426
|
+
return defaultLevel;
|
|
5427
|
+
} else {
|
|
5428
|
+
return inheritedLevel;
|
|
5429
|
+
}
|
|
5430
|
+
};
|
|
5431
|
+
self2.setLevel = function(level, persist) {
|
|
5432
|
+
userLevel = normalizeLevel(level);
|
|
5433
|
+
if (persist !== false) {
|
|
5434
|
+
persistLevelIfPossible(userLevel);
|
|
5435
|
+
}
|
|
5436
|
+
return replaceLoggingMethods.call(self2);
|
|
5437
|
+
};
|
|
5438
|
+
self2.setDefaultLevel = function(level) {
|
|
5439
|
+
defaultLevel = normalizeLevel(level);
|
|
5440
|
+
if (!getPersistedLevel()) {
|
|
5441
|
+
self2.setLevel(level, false);
|
|
5442
|
+
}
|
|
5443
|
+
};
|
|
5444
|
+
self2.resetLevel = function() {
|
|
5445
|
+
userLevel = null;
|
|
5446
|
+
clearPersistedLevel();
|
|
5447
|
+
replaceLoggingMethods.call(self2);
|
|
5448
|
+
};
|
|
5449
|
+
self2.enableAll = function(persist) {
|
|
5450
|
+
self2.setLevel(self2.levels.TRACE, persist);
|
|
5451
|
+
};
|
|
5452
|
+
self2.disableAll = function(persist) {
|
|
5453
|
+
self2.setLevel(self2.levels.SILENT, persist);
|
|
5454
|
+
};
|
|
5455
|
+
self2.rebuild = function() {
|
|
5456
|
+
if (defaultLogger !== self2) {
|
|
5457
|
+
inheritedLevel = normalizeLevel(defaultLogger.getLevel());
|
|
5458
|
+
}
|
|
5459
|
+
replaceLoggingMethods.call(self2);
|
|
5460
|
+
if (defaultLogger === self2) {
|
|
5461
|
+
for (var childName in _loggersByName) {
|
|
5462
|
+
_loggersByName[childName].rebuild();
|
|
5463
|
+
}
|
|
5464
|
+
}
|
|
5465
|
+
};
|
|
5466
|
+
inheritedLevel = normalizeLevel(
|
|
5467
|
+
defaultLogger ? defaultLogger.getLevel() : "WARN"
|
|
5468
|
+
);
|
|
5469
|
+
var initialLevel = getPersistedLevel();
|
|
5470
|
+
if (initialLevel != null) {
|
|
5471
|
+
userLevel = normalizeLevel(initialLevel);
|
|
5472
|
+
}
|
|
5473
|
+
replaceLoggingMethods.call(self2);
|
|
5474
|
+
}
|
|
5475
|
+
defaultLogger = new Logger();
|
|
5476
|
+
defaultLogger.getLogger = function getLogger(name) {
|
|
5477
|
+
if (typeof name !== "symbol" && typeof name !== "string" || name === "") {
|
|
5478
|
+
throw new TypeError("You must supply a name when creating a logger.");
|
|
5479
|
+
}
|
|
5480
|
+
var logger = _loggersByName[name];
|
|
5481
|
+
if (!logger) {
|
|
5482
|
+
logger = _loggersByName[name] = new Logger(
|
|
5483
|
+
name,
|
|
5484
|
+
defaultLogger.methodFactory
|
|
5485
|
+
);
|
|
5486
|
+
}
|
|
5487
|
+
return logger;
|
|
5488
|
+
};
|
|
5489
|
+
var _log = typeof window !== undefinedType2 ? window.log : void 0;
|
|
5490
|
+
defaultLogger.noConflict = function() {
|
|
5491
|
+
if (typeof window !== undefinedType2 && window.log === defaultLogger) {
|
|
5492
|
+
window.log = _log;
|
|
5493
|
+
}
|
|
5494
|
+
return defaultLogger;
|
|
5495
|
+
};
|
|
5496
|
+
defaultLogger.getLoggers = function getLoggers() {
|
|
5497
|
+
return _loggersByName;
|
|
5498
|
+
};
|
|
5499
|
+
defaultLogger["default"] = defaultLogger;
|
|
5500
|
+
return defaultLogger;
|
|
5501
|
+
});
|
|
5502
|
+
})(loglevel);
|
|
5503
|
+
var loglevelExports = loglevel.exports;
|
|
5504
|
+
const log = /* @__PURE__ */ getDefaultExportFromCjs(loglevelExports);
|
|
5253
5505
|
configSchema1_0_0.shape.coordinationSpace.unwrap();
|
|
5254
5506
|
configSchema1_0_0.shape.layout.element.shape.coordinationScopes.unwrap();
|
|
5255
5507
|
function upgradeReplaceViewProp(prefix, view, coordinationSpace) {
|
|
@@ -5678,7 +5930,7 @@ function upgradeFrom1_0_14(config) {
|
|
|
5678
5930
|
Object.entries(propAnalogies).forEach(([oldProp, newType]) => {
|
|
5679
5931
|
var _a;
|
|
5680
5932
|
if ((_a = viewDef.props) == null ? void 0 : _a[oldProp]) {
|
|
5681
|
-
|
|
5933
|
+
log.warn(`Warning: the '${oldProp}' prop on the ${viewDef.component} view is deprecated. Please use the '${newType}' coordination type instead.`);
|
|
5682
5934
|
}
|
|
5683
5935
|
});
|
|
5684
5936
|
});
|
|
@@ -5701,7 +5953,7 @@ function upgradeFrom1_0_15(config) {
|
|
|
5701
5953
|
Object.entries(coordinationScopes).forEach(([coordinationType, coordinationScope]) => {
|
|
5702
5954
|
if (!Array.isArray(coordinationScope) && typeof coordinationScope === "object") {
|
|
5703
5955
|
if (coordinationType === "dataset") {
|
|
5704
|
-
|
|
5956
|
+
log.error("Expected coordinationScopes.dataset value to be either string or string[], but got object.");
|
|
5705
5957
|
}
|
|
5706
5958
|
coordinationScopesBy.dataset[coordinationType] = coordinationScope;
|
|
5707
5959
|
} else if (Array.isArray(coordinationScope) || typeof coordinationScope === "string") {
|
|
@@ -7914,7 +8166,8 @@ const ViewType$1 = {
|
|
|
7914
8166
|
FEATURE_BAR_PLOT: "featureBarPlot",
|
|
7915
8167
|
BIOMARKER_SELECT: "biomarkerSelect",
|
|
7916
8168
|
LINK_CONTROLLER: "linkController",
|
|
7917
|
-
DUAL_SCATTERPLOT: "dualScatterplot"
|
|
8169
|
+
DUAL_SCATTERPLOT: "dualScatterplot",
|
|
8170
|
+
TREEMAP: "treemap"
|
|
7918
8171
|
};
|
|
7919
8172
|
const DataType$1 = {
|
|
7920
8173
|
OBS_LABELS: "obsLabels",
|
|
@@ -7968,6 +8221,7 @@ const FileType$1 = {
|
|
|
7968
8221
|
OBS_LABELS_ANNDATA_ZARR: "obsLabels.anndata.zarr",
|
|
7969
8222
|
FEATURE_LABELS_ANNDATA_ZARR: "featureLabels.anndata.zarr",
|
|
7970
8223
|
SAMPLE_EDGES_ANNDATA_ZARR: "sampleEdges.anndata.zarr",
|
|
8224
|
+
SAMPLE_SETS_ANNDATA_ZARR: "sampleSets.anndata.zarr",
|
|
7971
8225
|
// AnnData - zipped
|
|
7972
8226
|
OBS_FEATURE_MATRIX_ANNDATA_ZARR_ZIP: "obsFeatureMatrix.anndata.zarr.zip",
|
|
7973
8227
|
OBS_FEATURE_COLUMNS_ANNDATA_ZARR_ZIP: "obsFeatureColumns.anndata.zarr.zip",
|
|
@@ -7980,6 +8234,7 @@ const FileType$1 = {
|
|
|
7980
8234
|
OBS_LABELS_ANNDATA_ZARR_ZIP: "obsLabels.anndata.zarr.zip",
|
|
7981
8235
|
FEATURE_LABELS_ANNDATA_ZARR_ZIP: "featureLabels.anndata.zarr.zip",
|
|
7982
8236
|
SAMPLE_EDGES_ANNDATA_ZARR_ZIP: "sampleEdges.anndata.zarr.zip",
|
|
8237
|
+
SAMPLE_SETS_ANNDATA_ZARR_ZIP: "sampleSets.anndata.zarr.zip",
|
|
7983
8238
|
// AnnData - h5ad via reference spec
|
|
7984
8239
|
OBS_FEATURE_MATRIX_ANNDATA_H5AD: "obsFeatureMatrix.anndata.h5ad",
|
|
7985
8240
|
OBS_FEATURE_COLUMNS_ANNDATA_H5AD: "obsFeatureColumns.anndata.h5ad",
|
|
@@ -7992,6 +8247,7 @@ const FileType$1 = {
|
|
|
7992
8247
|
OBS_LABELS_ANNDATA_H5AD: "obsLabels.anndata.h5ad",
|
|
7993
8248
|
FEATURE_LABELS_ANNDATA_H5AD: "featureLabels.anndata.h5ad",
|
|
7994
8249
|
SAMPLE_EDGES_ANNDATA_H5AD: "sampleEdges.anndata.h5ad",
|
|
8250
|
+
SAMPLE_SETS_ANNDATA_H5AD: "sampleSets.anndata.h5ad",
|
|
7995
8251
|
// SpatialData
|
|
7996
8252
|
IMAGE_SPATIALDATA_ZARR: "image.spatialdata.zarr",
|
|
7997
8253
|
LABELS_SPATIALDATA_ZARR: "labels.spatialdata.zarr",
|
|
@@ -8183,12 +8439,15 @@ const CoordinationType$1 = {
|
|
|
8183
8439
|
SAMPLE_SET_FILTER: "sampleSetFilter",
|
|
8184
8440
|
SAMPLE_FILTER_MODE: "sampleFilterMode",
|
|
8185
8441
|
SAMPLE_SET_COLOR: "sampleSetColor",
|
|
8442
|
+
SAMPLE_HIGHLIGHT: "sampleHighlight",
|
|
8186
8443
|
EMBEDDING_POINTS_VISIBLE: "embeddingPointsVisible",
|
|
8187
8444
|
EMBEDDING_CONTOURS_VISIBLE: "embeddingContoursVisible",
|
|
8188
8445
|
EMBEDDING_CONTOURS_FILLED: "embeddingContoursFilled",
|
|
8189
8446
|
EMBEDDING_CONTOUR_PERCENTILES: "embeddingContourPercentiles",
|
|
8190
8447
|
CONTOUR_COLOR_ENCODING: "contourColorEncoding",
|
|
8191
|
-
CONTOUR_COLOR: "contourColor"
|
|
8448
|
+
CONTOUR_COLOR: "contourColor",
|
|
8449
|
+
// Treemap
|
|
8450
|
+
HIERARCHY_LEVELS: "hierarchyLevels"
|
|
8192
8451
|
};
|
|
8193
8452
|
const ViewType = {
|
|
8194
8453
|
GENES: [
|
|
@@ -8356,7 +8615,7 @@ function makeConstantWithDeprecationMessage(currObj, oldObj) {
|
|
|
8356
8615
|
const oldKeys = Object.keys(oldObj);
|
|
8357
8616
|
const propKey = String(prop);
|
|
8358
8617
|
if (oldKeys.includes(propKey)) {
|
|
8359
|
-
|
|
8618
|
+
log.warn(`Notice about the constant mapping ${propKey}: '${oldObj[propKey][0]}':
|
|
8360
8619
|
${oldObj[propKey][1]}`);
|
|
8361
8620
|
return oldObj[propKey];
|
|
8362
8621
|
}
|
|
@@ -8593,6 +8852,9 @@ const annDataObsSetsArr = z.array(
|
|
|
8593
8852
|
const annDataObsSets = z.object({
|
|
8594
8853
|
obsSets: annDataObsSetsArr
|
|
8595
8854
|
});
|
|
8855
|
+
const annDataSampleSets = z.object({
|
|
8856
|
+
sampleSets: annDataObsSetsArr
|
|
8857
|
+
});
|
|
8596
8858
|
const annDataObsFeatureColumnsArr = z.array(
|
|
8597
8859
|
z.object({
|
|
8598
8860
|
path: z.string()
|
|
@@ -8685,6 +8947,7 @@ const obsPointsAnndataSchema = annDataObsLocations;
|
|
|
8685
8947
|
const obsLocationsAnndataSchema = annDataObsLocations;
|
|
8686
8948
|
const obsSegmentationsAnndataSchema = annDataObsSegmentations;
|
|
8687
8949
|
const obsSetsAnndataSchema = annDataObsSets;
|
|
8950
|
+
const sampleSetsAnndataSchema = annDataSampleSets;
|
|
8688
8951
|
const obsFeatureMatrixAnndataSchema = annDataObsFeatureMatrix;
|
|
8689
8952
|
const obsLabelsAnndataSchema = annDataObsLabels;
|
|
8690
8953
|
const featureLabelsAnndataSchema = annDataFeatureLabels;
|
|
@@ -8918,6 +9181,7 @@ export {
|
|
|
8918
9181
|
rasterJsonSchema,
|
|
8919
9182
|
rgbArray,
|
|
8920
9183
|
sampleEdgesAnndataSchema,
|
|
9184
|
+
sampleSetsAnndataSchema,
|
|
8921
9185
|
sampleSetsCsvSchema,
|
|
8922
9186
|
spatialdataZarrSchema,
|
|
8923
9187
|
upgradeAndParse,
|
|
@@ -426,6 +426,33 @@ export declare const obsSetsAnndataSchema: z.ZodObject<{
|
|
|
426
426
|
scorePath?: string | undefined;
|
|
427
427
|
}[];
|
|
428
428
|
}>;
|
|
429
|
+
export declare const sampleSetsAnndataSchema: z.ZodObject<{
|
|
430
|
+
sampleSets: z.ZodArray<z.ZodObject<{
|
|
431
|
+
name: z.ZodString;
|
|
432
|
+
path: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
433
|
+
scorePath: z.ZodOptional<z.ZodString>;
|
|
434
|
+
}, "strip", z.ZodTypeAny, {
|
|
435
|
+
path: (string | string[]) & (string | string[] | undefined);
|
|
436
|
+
name: string;
|
|
437
|
+
scorePath?: string | undefined;
|
|
438
|
+
}, {
|
|
439
|
+
path: (string | string[]) & (string | string[] | undefined);
|
|
440
|
+
name: string;
|
|
441
|
+
scorePath?: string | undefined;
|
|
442
|
+
}>, "many">;
|
|
443
|
+
}, "strip", z.ZodTypeAny, {
|
|
444
|
+
sampleSets: {
|
|
445
|
+
path: (string | string[]) & (string | string[] | undefined);
|
|
446
|
+
name: string;
|
|
447
|
+
scorePath?: string | undefined;
|
|
448
|
+
}[];
|
|
449
|
+
}, {
|
|
450
|
+
sampleSets: {
|
|
451
|
+
path: (string | string[]) & (string | string[] | undefined);
|
|
452
|
+
name: string;
|
|
453
|
+
scorePath?: string | undefined;
|
|
454
|
+
}[];
|
|
455
|
+
}>;
|
|
429
456
|
export declare const obsFeatureMatrixAnndataSchema: z.ZodObject<{
|
|
430
457
|
path: z.ZodString;
|
|
431
458
|
featureFilterPath: z.ZodOptional<z.ZodString>;
|
|
@@ -583,19 +610,19 @@ export declare const sampleSetsCsvSchema: z.ZodObject<{
|
|
|
583
610
|
scoreColumn?: string | undefined;
|
|
584
611
|
}>, "many">;
|
|
585
612
|
}, "strip", z.ZodTypeAny, {
|
|
586
|
-
sampleIndex: string;
|
|
587
613
|
sampleSets: {
|
|
588
614
|
name: string;
|
|
589
615
|
column: (string | string[]) & (string | string[] | undefined);
|
|
590
616
|
scoreColumn?: string | undefined;
|
|
591
617
|
}[];
|
|
592
|
-
}, {
|
|
593
618
|
sampleIndex: string;
|
|
619
|
+
}, {
|
|
594
620
|
sampleSets: {
|
|
595
621
|
name: string;
|
|
596
622
|
column: (string | string[]) & (string | string[] | undefined);
|
|
597
623
|
scoreColumn?: string | undefined;
|
|
598
624
|
}[];
|
|
625
|
+
sampleIndex: string;
|
|
599
626
|
}>;
|
|
600
627
|
/**
|
|
601
628
|
* Options schemas for joint file types.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-def-options.d.ts","sourceRoot":"","sources":["../src/file-def-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,E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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE5B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBtB,CAAC"}
|
|
@@ -52,6 +52,9 @@ const annDataObsSetsArr = z.array(z.object({
|
|
|
52
52
|
const annDataObsSets = z.object({
|
|
53
53
|
obsSets: annDataObsSetsArr,
|
|
54
54
|
});
|
|
55
|
+
const annDataSampleSets = z.object({
|
|
56
|
+
sampleSets: annDataObsSetsArr,
|
|
57
|
+
});
|
|
55
58
|
const annDataObsFeatureColumnsArr = z.array(z.object({
|
|
56
59
|
path: z.string(),
|
|
57
60
|
}));
|
|
@@ -181,6 +184,7 @@ export const obsPointsAnndataSchema = annDataObsLocations;
|
|
|
181
184
|
export const obsLocationsAnndataSchema = annDataObsLocations;
|
|
182
185
|
export const obsSegmentationsAnndataSchema = annDataObsSegmentations;
|
|
183
186
|
export const obsSetsAnndataSchema = annDataObsSets;
|
|
187
|
+
export const sampleSetsAnndataSchema = annDataSampleSets;
|
|
184
188
|
export const obsFeatureMatrixAnndataSchema = annDataObsFeatureMatrix;
|
|
185
189
|
export const obsLabelsAnndataSchema = annDataObsLabels;
|
|
186
190
|
export const featureLabelsAnndataSchema = annDataFeatureLabels;
|
package/dist-tsc/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { latestConfigSchema } from './previous-config-meta.js';
|
|
|
3
3
|
export { latestFileDefSchema } from './previous-config-schemas.js';
|
|
4
4
|
export { upgradeAndParse, VERSIONED_CONFIG_SCHEMAS } from './view-config-versions.js';
|
|
5
5
|
export { rasterJsonSchema } from './raster-json.js';
|
|
6
|
-
export { obsEmbeddingCsvSchema, obsSetsCsvSchema, obsSpotsCsvSchema, obsPointsCsvSchema, obsLocationsCsvSchema, obsLabelsCsvSchema, featureLabelsCsvSchema, sampleSetsCsvSchema, obsSetsAnndataSchema, obsEmbeddingAnndataSchema, obsSpotsAnndataSchema, obsPointsAnndataSchema, obsLocationsAnndataSchema, obsLabelsAnndataSchema, obsFeatureMatrixAnndataSchema, obsFeatureColumnsAnndataSchema, obsSegmentationsAnndataSchema, featureLabelsAnndataSchema, sampleEdgesAnndataSchema, anndataZarrSchema, anndataH5adSchema, spatialdataZarrSchema, imageOmeZarrSchema, imageOmeTiffSchema, imageSpatialdataSchema, obsSegmentationsOmeTiffSchema, obsSegmentationsOmeZarrSchema, obsSegmentationsSpatialdataSchema, obsFeatureMatrixSpatialdataSchema, obsSpotsSpatialdataSchema, obsLocationsSpatialdataSchema, obsSetsSpatialdataSchema, meshGlbSchema, } from './file-def-options.js';
|
|
6
|
+
export { obsEmbeddingCsvSchema, obsSetsCsvSchema, obsSpotsCsvSchema, obsPointsCsvSchema, obsLocationsCsvSchema, obsLabelsCsvSchema, featureLabelsCsvSchema, sampleSetsCsvSchema, obsSetsAnndataSchema, sampleSetsAnndataSchema, obsEmbeddingAnndataSchema, obsSpotsAnndataSchema, obsPointsAnndataSchema, obsLocationsAnndataSchema, obsLabelsAnndataSchema, obsFeatureMatrixAnndataSchema, obsFeatureColumnsAnndataSchema, obsSegmentationsAnndataSchema, featureLabelsAnndataSchema, sampleEdgesAnndataSchema, anndataZarrSchema, anndataH5adSchema, spatialdataZarrSchema, imageOmeZarrSchema, imageOmeTiffSchema, imageSpatialdataSchema, obsSegmentationsOmeTiffSchema, obsSegmentationsOmeZarrSchema, obsSegmentationsSpatialdataSchema, obsFeatureMatrixSpatialdataSchema, obsSpotsSpatialdataSchema, obsLocationsSpatialdataSchema, obsSetsSpatialdataSchema, meshGlbSchema, } from './file-def-options.js';
|
|
7
7
|
export { anndataCellsZarrSchema, anndataCellSetsZarrSchema, anndataExpressionMatrixZarrSchema, cellsJsonSchema, } from './file-def-options-legacy.js';
|
|
8
8
|
export { obsSetPath, rgbArray, obsSetsSchema, obsSetsTabularSchema, } from './shared.js';
|
|
9
9
|
export { imageLayerObj, cellsLayerObj, neighborhoodsLayerObj, moleculesLayerObj, } from './spatial-layers.js';
|
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,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,yBAAyB,EACzB,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,sBAAsB,EACtB,6BAA6B,EAC7B,8BAA8B,EAC9B,6BAA6B,EAC7B,0BAA0B,EAC1B,wBAAwB,EACxB,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EACjC,iCAAiC,EACjC,yBAAyB,EACzB,6BAA6B,EAC7B,wBAAwB,EACxB,aAAa,GACd,MAAM,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sBAAsB,EACtB,yBAAyB,EACzB,iCAAiC,EACjC,eAAe,GAChB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,UAAU,EACV,QAAQ,EACR,aAAa,EACb,oBAAoB,GACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,aAAa,EACb,aAAa,EACb,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC"}
|
package/dist-tsc/index.js
CHANGED
|
@@ -3,7 +3,7 @@ export { latestConfigSchema } from './previous-config-meta.js';
|
|
|
3
3
|
export { latestFileDefSchema } from './previous-config-schemas.js';
|
|
4
4
|
export { upgradeAndParse, VERSIONED_CONFIG_SCHEMAS } from './view-config-versions.js';
|
|
5
5
|
export { rasterJsonSchema } from './raster-json.js';
|
|
6
|
-
export { obsEmbeddingCsvSchema, obsSetsCsvSchema, obsSpotsCsvSchema, obsPointsCsvSchema, obsLocationsCsvSchema, obsLabelsCsvSchema, featureLabelsCsvSchema, sampleSetsCsvSchema, obsSetsAnndataSchema, obsEmbeddingAnndataSchema, obsSpotsAnndataSchema, obsPointsAnndataSchema, obsLocationsAnndataSchema, obsLabelsAnndataSchema, obsFeatureMatrixAnndataSchema, obsFeatureColumnsAnndataSchema, obsSegmentationsAnndataSchema, featureLabelsAnndataSchema, sampleEdgesAnndataSchema, anndataZarrSchema, anndataH5adSchema, spatialdataZarrSchema, imageOmeZarrSchema, imageOmeTiffSchema, imageSpatialdataSchema, obsSegmentationsOmeTiffSchema, obsSegmentationsOmeZarrSchema, obsSegmentationsSpatialdataSchema, obsFeatureMatrixSpatialdataSchema, obsSpotsSpatialdataSchema, obsLocationsSpatialdataSchema, obsSetsSpatialdataSchema, meshGlbSchema, } from './file-def-options.js';
|
|
6
|
+
export { obsEmbeddingCsvSchema, obsSetsCsvSchema, obsSpotsCsvSchema, obsPointsCsvSchema, obsLocationsCsvSchema, obsLabelsCsvSchema, featureLabelsCsvSchema, sampleSetsCsvSchema, obsSetsAnndataSchema, sampleSetsAnndataSchema, obsEmbeddingAnndataSchema, obsSpotsAnndataSchema, obsPointsAnndataSchema, obsLocationsAnndataSchema, obsLabelsAnndataSchema, obsFeatureMatrixAnndataSchema, obsFeatureColumnsAnndataSchema, obsSegmentationsAnndataSchema, featureLabelsAnndataSchema, sampleEdgesAnndataSchema, anndataZarrSchema, anndataH5adSchema, spatialdataZarrSchema, imageOmeZarrSchema, imageOmeTiffSchema, imageSpatialdataSchema, obsSegmentationsOmeTiffSchema, obsSegmentationsOmeZarrSchema, obsSegmentationsSpatialdataSchema, obsFeatureMatrixSpatialdataSchema, obsSpotsSpatialdataSchema, obsLocationsSpatialdataSchema, obsSetsSpatialdataSchema, meshGlbSchema, } from './file-def-options.js';
|
|
7
7
|
export { anndataCellsZarrSchema, anndataCellSetsZarrSchema, anndataExpressionMatrixZarrSchema, cellsJsonSchema, } from './file-def-options-legacy.js';
|
|
8
8
|
export { obsSetPath, rgbArray, obsSetsSchema, obsSetsTabularSchema, } from './shared.js';
|
|
9
9
|
export { imageLayerObj, cellsLayerObj, neighborhoodsLayerObj, moleculesLayerObj, } from './spatial-layers.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"previous-config-upgraders.d.ts","sourceRoot":"","sources":["../src/previous-config-upgraders.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"previous-config-upgraders.d.ts","sourceRoot":"","sources":["../src/previous-config-upgraders.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAk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AkB,CAAC,CAwCpC;AAMD,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,GACzC,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CA+CpC;AAKD,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,GACzC,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAuCpC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { v4 as uuidv4 } from 'uuid';
|
|
2
2
|
import { cloneDeep } from 'lodash-es';
|
|
3
3
|
import { getNextScope, capitalize } from '@vitessce/utils';
|
|
4
|
+
import { log } from '@vitessce/globals';
|
|
4
5
|
import { configSchema1_0_0, } from './previous-config-schemas.js';
|
|
5
6
|
const coordinationSpaceSchema1_0_0 = configSchema1_0_0
|
|
6
7
|
.shape.coordinationSpace.unwrap();
|
|
@@ -526,7 +527,7 @@ export function upgradeFrom1_0_14(config) {
|
|
|
526
527
|
// Iterate over each old prop key.
|
|
527
528
|
Object.entries(propAnalogies).forEach(([oldProp, newType]) => {
|
|
528
529
|
if (viewDef.props?.[oldProp]) {
|
|
529
|
-
|
|
530
|
+
log.warn(`Warning: the '${oldProp}' prop on the ${viewDef.component} view is deprecated. Please use the '${newType}' coordination type instead.`);
|
|
530
531
|
}
|
|
531
532
|
});
|
|
532
533
|
});
|
|
@@ -555,7 +556,7 @@ export function upgradeFrom1_0_15(config) {
|
|
|
555
556
|
Object.entries(coordinationScopes).forEach(([coordinationType, coordinationScope]) => {
|
|
556
557
|
if (!Array.isArray(coordinationScope) && typeof coordinationScope === 'object') {
|
|
557
558
|
if (coordinationType === 'dataset') {
|
|
558
|
-
|
|
559
|
+
log.error('Expected coordinationScopes.dataset value to be either string or string[], but got object.');
|
|
559
560
|
}
|
|
560
561
|
coordinationScopesBy.dataset[coordinationType] = coordinationScope;
|
|
561
562
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/schemas",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.7",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -23,10 +23,11 @@
|
|
|
23
23
|
"semver": "^7.3.8",
|
|
24
24
|
"uuid": "^9.0.0",
|
|
25
25
|
"zod": "^3.21.4",
|
|
26
|
-
"@vitessce/constants": "3.5.
|
|
27
|
-
"@vitessce/constants-internal": "3.5.
|
|
28
|
-
"@vitessce/plugins": "3.5.
|
|
29
|
-
"@vitessce/utils": "3.5.
|
|
26
|
+
"@vitessce/constants": "3.5.7",
|
|
27
|
+
"@vitessce/constants-internal": "3.5.7",
|
|
28
|
+
"@vitessce/plugins": "3.5.7",
|
|
29
|
+
"@vitessce/utils": "3.5.7",
|
|
30
|
+
"@vitessce/globals": "3.5.7"
|
|
30
31
|
},
|
|
31
32
|
"devDependencies": {
|
|
32
33
|
"json-schema-to-zod": "^0.6.3",
|
package/src/file-def-options.ts
CHANGED
|
@@ -62,6 +62,9 @@ const annDataObsSetsArr = z.array(
|
|
|
62
62
|
const annDataObsSets = z.object({
|
|
63
63
|
obsSets: annDataObsSetsArr,
|
|
64
64
|
});
|
|
65
|
+
const annDataSampleSets = z.object({
|
|
66
|
+
sampleSets: annDataObsSetsArr,
|
|
67
|
+
});
|
|
65
68
|
|
|
66
69
|
const annDataObsFeatureColumnsArr = z.array(
|
|
67
70
|
z.object({
|
|
@@ -204,6 +207,7 @@ export const obsPointsAnndataSchema = annDataObsLocations;
|
|
|
204
207
|
export const obsLocationsAnndataSchema = annDataObsLocations;
|
|
205
208
|
export const obsSegmentationsAnndataSchema = annDataObsSegmentations;
|
|
206
209
|
export const obsSetsAnndataSchema = annDataObsSets;
|
|
210
|
+
export const sampleSetsAnndataSchema = annDataSampleSets;
|
|
207
211
|
export const obsFeatureMatrixAnndataSchema = annDataObsFeatureMatrix;
|
|
208
212
|
export const obsLabelsAnndataSchema = annDataObsLabels;
|
|
209
213
|
export const featureLabelsAnndataSchema = annDataFeatureLabels;
|
package/src/index.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { z } from 'zod';
|
|
|
3
3
|
import { v4 as uuidv4 } from 'uuid';
|
|
4
4
|
import { cloneDeep } from 'lodash-es';
|
|
5
5
|
import { getNextScope, capitalize } from '@vitessce/utils';
|
|
6
|
+
import { log } from '@vitessce/globals';
|
|
6
7
|
import { componentCoordinationScopes, componentCoordinationScopesBy } from './shared.js';
|
|
7
8
|
import {
|
|
8
9
|
configSchema0_1_0,
|
|
@@ -673,7 +674,7 @@ export function upgradeFrom1_0_14(
|
|
|
673
674
|
// Iterate over each old prop key.
|
|
674
675
|
Object.entries(propAnalogies).forEach(([oldProp, newType]) => {
|
|
675
676
|
if (viewDef.props?.[oldProp]) {
|
|
676
|
-
|
|
677
|
+
log.warn(`Warning: the '${oldProp}' prop on the ${viewDef.component} view is deprecated. Please use the '${newType}' coordination type instead.`);
|
|
677
678
|
}
|
|
678
679
|
});
|
|
679
680
|
});
|
|
@@ -706,7 +707,7 @@ export function upgradeFrom1_0_15(
|
|
|
706
707
|
Object.entries(coordinationScopes).forEach(([coordinationType, coordinationScope]) => {
|
|
707
708
|
if (!Array.isArray(coordinationScope) && typeof coordinationScope === 'object') {
|
|
708
709
|
if (coordinationType === 'dataset') {
|
|
709
|
-
|
|
710
|
+
log.error('Expected coordinationScopes.dataset value to be either string or string[], but got object.');
|
|
710
711
|
}
|
|
711
712
|
coordinationScopesBy.dataset[coordinationType] = coordinationScope;
|
|
712
713
|
} else if (Array.isArray(coordinationScope) || typeof coordinationScope === 'string') {
|