@vitessce/csv 3.5.6 → 3.5.8
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 +366 -41
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -186,16 +186,302 @@ class AbstractLoaderError {
|
|
|
186
186
|
throw new Error("The warnInConsole() method has not been implemented.");
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
190
|
+
function getDefaultExportFromCjs(x) {
|
|
191
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
192
|
+
}
|
|
193
|
+
function getAugmentedNamespace(n) {
|
|
194
|
+
if (n.__esModule)
|
|
195
|
+
return n;
|
|
196
|
+
var f = n.default;
|
|
197
|
+
if (typeof f == "function") {
|
|
198
|
+
var a = function a2() {
|
|
199
|
+
if (this instanceof a2) {
|
|
200
|
+
var args = [null];
|
|
201
|
+
args.push.apply(args, arguments);
|
|
202
|
+
var Ctor = Function.bind.apply(f, args);
|
|
203
|
+
return new Ctor();
|
|
204
|
+
}
|
|
205
|
+
return f.apply(this, arguments);
|
|
206
|
+
};
|
|
207
|
+
a.prototype = f.prototype;
|
|
208
|
+
} else
|
|
209
|
+
a = {};
|
|
210
|
+
Object.defineProperty(a, "__esModule", { value: true });
|
|
211
|
+
Object.keys(n).forEach(function(k) {
|
|
212
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
213
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
214
|
+
enumerable: true,
|
|
215
|
+
get: function() {
|
|
216
|
+
return n[k];
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
});
|
|
220
|
+
return a;
|
|
221
|
+
}
|
|
222
|
+
var loglevel = { exports: {} };
|
|
223
|
+
(function(module2) {
|
|
224
|
+
(function(root2, definition) {
|
|
225
|
+
if (module2.exports) {
|
|
226
|
+
module2.exports = definition();
|
|
227
|
+
} else {
|
|
228
|
+
root2.log = definition();
|
|
229
|
+
}
|
|
230
|
+
})(commonjsGlobal, function() {
|
|
231
|
+
var noop = function() {
|
|
232
|
+
};
|
|
233
|
+
var undefinedType2 = "undefined";
|
|
234
|
+
var isIE = typeof window !== undefinedType2 && typeof window.navigator !== undefinedType2 && /Trident\/|MSIE /.test(window.navigator.userAgent);
|
|
235
|
+
var logMethods = [
|
|
236
|
+
"trace",
|
|
237
|
+
"debug",
|
|
238
|
+
"info",
|
|
239
|
+
"warn",
|
|
240
|
+
"error"
|
|
241
|
+
];
|
|
242
|
+
var _loggersByName = {};
|
|
243
|
+
var defaultLogger = null;
|
|
244
|
+
function bindMethod(obj, methodName) {
|
|
245
|
+
var method = obj[methodName];
|
|
246
|
+
if (typeof method.bind === "function") {
|
|
247
|
+
return method.bind(obj);
|
|
248
|
+
} else {
|
|
249
|
+
try {
|
|
250
|
+
return Function.prototype.bind.call(method, obj);
|
|
251
|
+
} catch (e) {
|
|
252
|
+
return function() {
|
|
253
|
+
return Function.prototype.apply.apply(method, [obj, arguments]);
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
function traceForIE() {
|
|
259
|
+
if (console.log) {
|
|
260
|
+
if (console.log.apply) {
|
|
261
|
+
console.log.apply(console, arguments);
|
|
262
|
+
} else {
|
|
263
|
+
Function.prototype.apply.apply(console.log, [console, arguments]);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
if (console.trace)
|
|
267
|
+
console.trace();
|
|
268
|
+
}
|
|
269
|
+
function realMethod(methodName) {
|
|
270
|
+
if (methodName === "debug") {
|
|
271
|
+
methodName = "log";
|
|
272
|
+
}
|
|
273
|
+
if (typeof console === undefinedType2) {
|
|
274
|
+
return false;
|
|
275
|
+
} else if (methodName === "trace" && isIE) {
|
|
276
|
+
return traceForIE;
|
|
277
|
+
} else if (console[methodName] !== void 0) {
|
|
278
|
+
return bindMethod(console, methodName);
|
|
279
|
+
} else if (console.log !== void 0) {
|
|
280
|
+
return bindMethod(console, "log");
|
|
281
|
+
} else {
|
|
282
|
+
return noop;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
function replaceLoggingMethods() {
|
|
286
|
+
var level = this.getLevel();
|
|
287
|
+
for (var i = 0; i < logMethods.length; i++) {
|
|
288
|
+
var methodName = logMethods[i];
|
|
289
|
+
this[methodName] = i < level ? noop : this.methodFactory(methodName, level, this.name);
|
|
290
|
+
}
|
|
291
|
+
this.log = this.debug;
|
|
292
|
+
if (typeof console === undefinedType2 && level < this.levels.SILENT) {
|
|
293
|
+
return "No console available for logging";
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
function enableLoggingWhenConsoleArrives(methodName) {
|
|
297
|
+
return function() {
|
|
298
|
+
if (typeof console !== undefinedType2) {
|
|
299
|
+
replaceLoggingMethods.call(this);
|
|
300
|
+
this[methodName].apply(this, arguments);
|
|
301
|
+
}
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
function defaultMethodFactory(methodName, _level, _loggerName) {
|
|
305
|
+
return realMethod(methodName) || enableLoggingWhenConsoleArrives.apply(this, arguments);
|
|
306
|
+
}
|
|
307
|
+
function Logger(name, factory) {
|
|
308
|
+
var self2 = this;
|
|
309
|
+
var inheritedLevel;
|
|
310
|
+
var defaultLevel;
|
|
311
|
+
var userLevel;
|
|
312
|
+
var storageKey = "loglevel";
|
|
313
|
+
if (typeof name === "string") {
|
|
314
|
+
storageKey += ":" + name;
|
|
315
|
+
} else if (typeof name === "symbol") {
|
|
316
|
+
storageKey = void 0;
|
|
317
|
+
}
|
|
318
|
+
function persistLevelIfPossible(levelNum) {
|
|
319
|
+
var levelName = (logMethods[levelNum] || "silent").toUpperCase();
|
|
320
|
+
if (typeof window === undefinedType2 || !storageKey)
|
|
321
|
+
return;
|
|
322
|
+
try {
|
|
323
|
+
window.localStorage[storageKey] = levelName;
|
|
324
|
+
return;
|
|
325
|
+
} catch (ignore) {
|
|
326
|
+
}
|
|
327
|
+
try {
|
|
328
|
+
window.document.cookie = encodeURIComponent(storageKey) + "=" + levelName + ";";
|
|
329
|
+
} catch (ignore) {
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
function getPersistedLevel() {
|
|
333
|
+
var storedLevel;
|
|
334
|
+
if (typeof window === undefinedType2 || !storageKey)
|
|
335
|
+
return;
|
|
336
|
+
try {
|
|
337
|
+
storedLevel = window.localStorage[storageKey];
|
|
338
|
+
} catch (ignore) {
|
|
339
|
+
}
|
|
340
|
+
if (typeof storedLevel === undefinedType2) {
|
|
341
|
+
try {
|
|
342
|
+
var cookie = window.document.cookie;
|
|
343
|
+
var cookieName = encodeURIComponent(storageKey);
|
|
344
|
+
var location = cookie.indexOf(cookieName + "=");
|
|
345
|
+
if (location !== -1) {
|
|
346
|
+
storedLevel = /^([^;]+)/.exec(
|
|
347
|
+
cookie.slice(location + cookieName.length + 1)
|
|
348
|
+
)[1];
|
|
349
|
+
}
|
|
350
|
+
} catch (ignore) {
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
if (self2.levels[storedLevel] === void 0) {
|
|
354
|
+
storedLevel = void 0;
|
|
355
|
+
}
|
|
356
|
+
return storedLevel;
|
|
357
|
+
}
|
|
358
|
+
function clearPersistedLevel() {
|
|
359
|
+
if (typeof window === undefinedType2 || !storageKey)
|
|
360
|
+
return;
|
|
361
|
+
try {
|
|
362
|
+
window.localStorage.removeItem(storageKey);
|
|
363
|
+
} catch (ignore) {
|
|
364
|
+
}
|
|
365
|
+
try {
|
|
366
|
+
window.document.cookie = encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
|
|
367
|
+
} catch (ignore) {
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
function normalizeLevel(input) {
|
|
371
|
+
var level = input;
|
|
372
|
+
if (typeof level === "string" && self2.levels[level.toUpperCase()] !== void 0) {
|
|
373
|
+
level = self2.levels[level.toUpperCase()];
|
|
374
|
+
}
|
|
375
|
+
if (typeof level === "number" && level >= 0 && level <= self2.levels.SILENT) {
|
|
376
|
+
return level;
|
|
377
|
+
} else {
|
|
378
|
+
throw new TypeError("log.setLevel() called with invalid level: " + input);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
self2.name = name;
|
|
382
|
+
self2.levels = {
|
|
383
|
+
"TRACE": 0,
|
|
384
|
+
"DEBUG": 1,
|
|
385
|
+
"INFO": 2,
|
|
386
|
+
"WARN": 3,
|
|
387
|
+
"ERROR": 4,
|
|
388
|
+
"SILENT": 5
|
|
389
|
+
};
|
|
390
|
+
self2.methodFactory = factory || defaultMethodFactory;
|
|
391
|
+
self2.getLevel = function() {
|
|
392
|
+
if (userLevel != null) {
|
|
393
|
+
return userLevel;
|
|
394
|
+
} else if (defaultLevel != null) {
|
|
395
|
+
return defaultLevel;
|
|
396
|
+
} else {
|
|
397
|
+
return inheritedLevel;
|
|
398
|
+
}
|
|
399
|
+
};
|
|
400
|
+
self2.setLevel = function(level, persist) {
|
|
401
|
+
userLevel = normalizeLevel(level);
|
|
402
|
+
if (persist !== false) {
|
|
403
|
+
persistLevelIfPossible(userLevel);
|
|
404
|
+
}
|
|
405
|
+
return replaceLoggingMethods.call(self2);
|
|
406
|
+
};
|
|
407
|
+
self2.setDefaultLevel = function(level) {
|
|
408
|
+
defaultLevel = normalizeLevel(level);
|
|
409
|
+
if (!getPersistedLevel()) {
|
|
410
|
+
self2.setLevel(level, false);
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
self2.resetLevel = function() {
|
|
414
|
+
userLevel = null;
|
|
415
|
+
clearPersistedLevel();
|
|
416
|
+
replaceLoggingMethods.call(self2);
|
|
417
|
+
};
|
|
418
|
+
self2.enableAll = function(persist) {
|
|
419
|
+
self2.setLevel(self2.levels.TRACE, persist);
|
|
420
|
+
};
|
|
421
|
+
self2.disableAll = function(persist) {
|
|
422
|
+
self2.setLevel(self2.levels.SILENT, persist);
|
|
423
|
+
};
|
|
424
|
+
self2.rebuild = function() {
|
|
425
|
+
if (defaultLogger !== self2) {
|
|
426
|
+
inheritedLevel = normalizeLevel(defaultLogger.getLevel());
|
|
427
|
+
}
|
|
428
|
+
replaceLoggingMethods.call(self2);
|
|
429
|
+
if (defaultLogger === self2) {
|
|
430
|
+
for (var childName in _loggersByName) {
|
|
431
|
+
_loggersByName[childName].rebuild();
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
};
|
|
435
|
+
inheritedLevel = normalizeLevel(
|
|
436
|
+
defaultLogger ? defaultLogger.getLevel() : "WARN"
|
|
437
|
+
);
|
|
438
|
+
var initialLevel = getPersistedLevel();
|
|
439
|
+
if (initialLevel != null) {
|
|
440
|
+
userLevel = normalizeLevel(initialLevel);
|
|
441
|
+
}
|
|
442
|
+
replaceLoggingMethods.call(self2);
|
|
443
|
+
}
|
|
444
|
+
defaultLogger = new Logger();
|
|
445
|
+
defaultLogger.getLogger = function getLogger(name) {
|
|
446
|
+
if (typeof name !== "symbol" && typeof name !== "string" || name === "") {
|
|
447
|
+
throw new TypeError("You must supply a name when creating a logger.");
|
|
448
|
+
}
|
|
449
|
+
var logger = _loggersByName[name];
|
|
450
|
+
if (!logger) {
|
|
451
|
+
logger = _loggersByName[name] = new Logger(
|
|
452
|
+
name,
|
|
453
|
+
defaultLogger.methodFactory
|
|
454
|
+
);
|
|
455
|
+
}
|
|
456
|
+
return logger;
|
|
457
|
+
};
|
|
458
|
+
var _log = typeof window !== undefinedType2 ? window.log : void 0;
|
|
459
|
+
defaultLogger.noConflict = function() {
|
|
460
|
+
if (typeof window !== undefinedType2 && window.log === defaultLogger) {
|
|
461
|
+
window.log = _log;
|
|
462
|
+
}
|
|
463
|
+
return defaultLogger;
|
|
464
|
+
};
|
|
465
|
+
defaultLogger.getLoggers = function getLoggers() {
|
|
466
|
+
return _loggersByName;
|
|
467
|
+
};
|
|
468
|
+
defaultLogger["default"] = defaultLogger;
|
|
469
|
+
return defaultLogger;
|
|
470
|
+
});
|
|
471
|
+
})(loglevel);
|
|
472
|
+
var loglevelExports = loglevel.exports;
|
|
473
|
+
const log = /* @__PURE__ */ getDefaultExportFromCjs(loglevelExports);
|
|
189
474
|
class DataSourceFetchError extends AbstractLoaderError {
|
|
190
475
|
constructor(source, url, headers) {
|
|
191
476
|
super(`${source} Error HTTP Status fetching from ${url}`);
|
|
192
477
|
this.source = source;
|
|
193
478
|
this.url = url;
|
|
194
479
|
this.headers = headers;
|
|
480
|
+
this.message = `${source} failed to fetch from ${url} with headers ${JSON.stringify(headers)}`;
|
|
195
481
|
}
|
|
196
482
|
warnInConsole() {
|
|
197
|
-
const {
|
|
198
|
-
|
|
483
|
+
const { message } = this;
|
|
484
|
+
log.warn(message);
|
|
199
485
|
}
|
|
200
486
|
}
|
|
201
487
|
class CsvSource {
|
|
@@ -332,9 +618,15 @@ const ViewType$1 = {
|
|
|
332
618
|
FEATURE_VALUE_HISTOGRAM: "featureValueHistogram",
|
|
333
619
|
DOT_PLOT: "dotPlot",
|
|
334
620
|
FEATURE_BAR_PLOT: "featureBarPlot",
|
|
621
|
+
VOLCANO_PLOT: "volcanoPlot",
|
|
622
|
+
OBS_SET_COMPOSITION_BAR_PLOT: "obsSetCompositionBarPlot",
|
|
623
|
+
FEATURE_SET_ENRICHMENT_BAR_PLOT: "featureSetEnrichmentBarPlot",
|
|
335
624
|
BIOMARKER_SELECT: "biomarkerSelect",
|
|
625
|
+
COMPARATIVE_HEADING: "comparativeHeading",
|
|
336
626
|
LINK_CONTROLLER: "linkController",
|
|
337
|
-
|
|
627
|
+
NEUROGLANCER: "neuroglancer",
|
|
628
|
+
DUAL_SCATTERPLOT: "dualScatterplot",
|
|
629
|
+
TREEMAP: "treemap"
|
|
338
630
|
};
|
|
339
631
|
const DataType$1 = {
|
|
340
632
|
OBS_LABELS: "obsLabels",
|
|
@@ -350,7 +642,11 @@ const DataType$1 = {
|
|
|
350
642
|
OBS_POINTS: "obsPoints",
|
|
351
643
|
OBS_LOCATIONS: "obsLocations",
|
|
352
644
|
SAMPLE_SETS: "sampleSets",
|
|
353
|
-
SAMPLE_EDGES: "sampleEdges"
|
|
645
|
+
SAMPLE_EDGES: "sampleEdges",
|
|
646
|
+
COMPARISON_METADATA: "comparisonMetadata",
|
|
647
|
+
FEATURE_STATS: "featureStats",
|
|
648
|
+
FEATURE_SET_STATS: "featureSetStats",
|
|
649
|
+
OBS_SET_STATS: "obsSetStats"
|
|
354
650
|
};
|
|
355
651
|
const FileType$1 = {
|
|
356
652
|
// Joint file types
|
|
@@ -388,6 +684,11 @@ const FileType$1 = {
|
|
|
388
684
|
OBS_LABELS_ANNDATA_ZARR: "obsLabels.anndata.zarr",
|
|
389
685
|
FEATURE_LABELS_ANNDATA_ZARR: "featureLabels.anndata.zarr",
|
|
390
686
|
SAMPLE_EDGES_ANNDATA_ZARR: "sampleEdges.anndata.zarr",
|
|
687
|
+
SAMPLE_SETS_ANNDATA_ZARR: "sampleSets.anndata.zarr",
|
|
688
|
+
COMPARISON_METADATA_ANNDATA_ZARR: "comparisonMetadata.anndata.zarr",
|
|
689
|
+
COMPARATIVE_FEATURE_STATS_ANNDATA_ZARR: "comparativeFeatureStats.anndata.zarr",
|
|
690
|
+
COMPARATIVE_FEATURE_SET_STATS_ANNDATA_ZARR: "comparativeFeatureSetStats.anndata.zarr",
|
|
691
|
+
COMPARATIVE_OBS_SET_STATS_ANNDATA_ZARR: "comparativeObsSetStats.anndata.zarr",
|
|
391
692
|
// AnnData - zipped
|
|
392
693
|
OBS_FEATURE_MATRIX_ANNDATA_ZARR_ZIP: "obsFeatureMatrix.anndata.zarr.zip",
|
|
393
694
|
OBS_FEATURE_COLUMNS_ANNDATA_ZARR_ZIP: "obsFeatureColumns.anndata.zarr.zip",
|
|
@@ -400,6 +701,11 @@ const FileType$1 = {
|
|
|
400
701
|
OBS_LABELS_ANNDATA_ZARR_ZIP: "obsLabels.anndata.zarr.zip",
|
|
401
702
|
FEATURE_LABELS_ANNDATA_ZARR_ZIP: "featureLabels.anndata.zarr.zip",
|
|
402
703
|
SAMPLE_EDGES_ANNDATA_ZARR_ZIP: "sampleEdges.anndata.zarr.zip",
|
|
704
|
+
SAMPLE_SETS_ANNDATA_ZARR_ZIP: "sampleSets.anndata.zarr.zip",
|
|
705
|
+
COMPARISON_METADATA_ANNDATA_ZARR_ZIP: "comparisonMetadata.anndata.zarr.zip",
|
|
706
|
+
COMPARATIVE_FEATURE_STATS_ANNDATA_ZARR_ZIP: "comparativeFeatureStats.anndata.zarr.zip",
|
|
707
|
+
COMPARATIVE_FEATURE_SET_STATS_ANNDATA_ZARR_ZIP: "comparativeFeatureSetStats.anndata.zarr.zip",
|
|
708
|
+
COMPARATIVE_OBS_SET_STATS_ANNDATA_ZARR_ZIP: "comparativeObsSetStats.anndata.zarr.zip",
|
|
403
709
|
// AnnData - h5ad via reference spec
|
|
404
710
|
OBS_FEATURE_MATRIX_ANNDATA_H5AD: "obsFeatureMatrix.anndata.h5ad",
|
|
405
711
|
OBS_FEATURE_COLUMNS_ANNDATA_H5AD: "obsFeatureColumns.anndata.h5ad",
|
|
@@ -412,6 +718,11 @@ const FileType$1 = {
|
|
|
412
718
|
OBS_LABELS_ANNDATA_H5AD: "obsLabels.anndata.h5ad",
|
|
413
719
|
FEATURE_LABELS_ANNDATA_H5AD: "featureLabels.anndata.h5ad",
|
|
414
720
|
SAMPLE_EDGES_ANNDATA_H5AD: "sampleEdges.anndata.h5ad",
|
|
721
|
+
SAMPLE_SETS_ANNDATA_H5AD: "sampleSets.anndata.h5ad",
|
|
722
|
+
COMPARISON_METADATA_ANNDATA_H5AD: "comparisonMetadata.anndata.h5ad",
|
|
723
|
+
COMPARATIVE_FEATURE_STATS_ANNDATA_H5AD: "comparativeFeatureStats.anndata.h5ad",
|
|
724
|
+
COMPARATIVE_FEATURE_SET_STATS_ANNDATA_H5AD: "comparativeFeatureSetStats.anndata.h5ad",
|
|
725
|
+
COMPARATIVE_OBS_SET_STATS_ANNDATA_H5AD: "comparativeObsSetStats.anndata.h5ad",
|
|
415
726
|
// SpatialData
|
|
416
727
|
IMAGE_SPATIALDATA_ZARR: "image.spatialdata.zarr",
|
|
417
728
|
LABELS_SPATIALDATA_ZARR: "labels.spatialdata.zarr",
|
|
@@ -603,46 +914,21 @@ const CoordinationType$1 = {
|
|
|
603
914
|
SAMPLE_SET_FILTER: "sampleSetFilter",
|
|
604
915
|
SAMPLE_FILTER_MODE: "sampleFilterMode",
|
|
605
916
|
SAMPLE_SET_COLOR: "sampleSetColor",
|
|
917
|
+
SAMPLE_HIGHLIGHT: "sampleHighlight",
|
|
606
918
|
EMBEDDING_POINTS_VISIBLE: "embeddingPointsVisible",
|
|
607
919
|
EMBEDDING_CONTOURS_VISIBLE: "embeddingContoursVisible",
|
|
608
920
|
EMBEDDING_CONTOURS_FILLED: "embeddingContoursFilled",
|
|
609
921
|
EMBEDDING_CONTOUR_PERCENTILES: "embeddingContourPercentiles",
|
|
610
922
|
CONTOUR_COLOR_ENCODING: "contourColorEncoding",
|
|
611
|
-
CONTOUR_COLOR: "contourColor"
|
|
923
|
+
CONTOUR_COLOR: "contourColor",
|
|
924
|
+
// For volcano plot:
|
|
925
|
+
FEATURE_POINT_SIGNIFICANCE_THRESHOLD: "featurePointSignificanceThreshold",
|
|
926
|
+
FEATURE_LABEL_SIGNIFICANCE_THRESHOLD: "featureLabelSignificanceThreshold",
|
|
927
|
+
FEATURE_POINT_FOLD_CHANGE_THRESHOLD: "featurePointFoldChangeThreshold",
|
|
928
|
+
FEATURE_LABEL_FOLD_CHANGE_THRESHOLD: "featureLabelFoldChangeThreshold",
|
|
929
|
+
// Treemap
|
|
930
|
+
HIERARCHY_LEVELS: "hierarchyLevels"
|
|
612
931
|
};
|
|
613
|
-
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
614
|
-
function getDefaultExportFromCjs(x) {
|
|
615
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
616
|
-
}
|
|
617
|
-
function getAugmentedNamespace(n) {
|
|
618
|
-
if (n.__esModule)
|
|
619
|
-
return n;
|
|
620
|
-
var f = n.default;
|
|
621
|
-
if (typeof f == "function") {
|
|
622
|
-
var a = function a2() {
|
|
623
|
-
if (this instanceof a2) {
|
|
624
|
-
var args = [null];
|
|
625
|
-
args.push.apply(args, arguments);
|
|
626
|
-
var Ctor = Function.bind.apply(f, args);
|
|
627
|
-
return new Ctor();
|
|
628
|
-
}
|
|
629
|
-
return f.apply(this, arguments);
|
|
630
|
-
};
|
|
631
|
-
a.prototype = f.prototype;
|
|
632
|
-
} else
|
|
633
|
-
a = {};
|
|
634
|
-
Object.defineProperty(a, "__esModule", { value: true });
|
|
635
|
-
Object.keys(n).forEach(function(k) {
|
|
636
|
-
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
637
|
-
Object.defineProperty(a, k, d.get ? d : {
|
|
638
|
-
enumerable: true,
|
|
639
|
-
get: function() {
|
|
640
|
-
return n[k];
|
|
641
|
-
}
|
|
642
|
-
});
|
|
643
|
-
});
|
|
644
|
-
return a;
|
|
645
|
-
}
|
|
646
932
|
function commonjsRequire(path) {
|
|
647
933
|
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
648
934
|
}
|
|
@@ -7430,7 +7716,7 @@ function upgradeFrom1_0_14(config) {
|
|
|
7430
7716
|
Object.entries(propAnalogies).forEach(([oldProp, newType]) => {
|
|
7431
7717
|
var _a;
|
|
7432
7718
|
if ((_a = viewDef.props) == null ? void 0 : _a[oldProp]) {
|
|
7433
|
-
|
|
7719
|
+
log.warn(`Warning: the '${oldProp}' prop on the ${viewDef.component} view is deprecated. Please use the '${newType}' coordination type instead.`);
|
|
7434
7720
|
}
|
|
7435
7721
|
});
|
|
7436
7722
|
});
|
|
@@ -7453,7 +7739,7 @@ function upgradeFrom1_0_15(config) {
|
|
|
7453
7739
|
Object.entries(coordinationScopes).forEach(([coordinationType, coordinationScope]) => {
|
|
7454
7740
|
if (!Array.isArray(coordinationScope) && typeof coordinationScope === "object") {
|
|
7455
7741
|
if (coordinationType === "dataset") {
|
|
7456
|
-
|
|
7742
|
+
log.error("Expected coordinationScopes.dataset value to be either string or string[], but got object.");
|
|
7457
7743
|
}
|
|
7458
7744
|
coordinationScopesBy.dataset[coordinationType] = coordinationScope;
|
|
7459
7745
|
} else if (Array.isArray(coordinationScope) || typeof coordinationScope === "string") {
|
|
@@ -9812,7 +10098,7 @@ function makeConstantWithDeprecationMessage(currObj, oldObj) {
|
|
|
9812
10098
|
const oldKeys = Object.keys(oldObj);
|
|
9813
10099
|
const propKey = String(prop);
|
|
9814
10100
|
if (oldKeys.includes(propKey)) {
|
|
9815
|
-
|
|
10101
|
+
log.warn(`Notice about the constant mapping ${propKey}: '${oldObj[propKey][0]}':
|
|
9816
10102
|
${oldObj[propKey][1]}`);
|
|
9817
10103
|
return oldObj[propKey];
|
|
9818
10104
|
}
|
|
@@ -9891,6 +10177,42 @@ const annDataConvenienceObsEmbeddingItem = z.object({
|
|
|
9891
10177
|
dims: z.array(z.number()).optional(),
|
|
9892
10178
|
embeddingType: z.string()
|
|
9893
10179
|
});
|
|
10180
|
+
z.object({
|
|
10181
|
+
path: z.string().describe("Path to the comparison metadata, such as /uns/comparison_metadata")
|
|
10182
|
+
});
|
|
10183
|
+
z.object({
|
|
10184
|
+
// TODO: implement a featureStats.anndata.zarr loader
|
|
10185
|
+
// which does not depend on comparisonMetadata
|
|
10186
|
+
// (instead, would point directly to the root of
|
|
10187
|
+
// the dataframe containing a set of diff exp results)
|
|
10188
|
+
// path: z.string().describe('Path to the dataframe containing the results.'),
|
|
10189
|
+
metadataPath: z.string().describe("Path to the comparison metadata."),
|
|
10190
|
+
indexColumn: z.string().optional().describe("Provide a column to use for the feature index, if different than the default dataframe index."),
|
|
10191
|
+
pValueColumn: z.string(),
|
|
10192
|
+
foldChangeColumn: z.string(),
|
|
10193
|
+
pValueTransformation: z.enum(["minuslog10"]).optional(),
|
|
10194
|
+
pValueAdjusted: z.boolean().optional(),
|
|
10195
|
+
foldChangeTransformation: z.enum(["log2"]).optional()
|
|
10196
|
+
});
|
|
10197
|
+
z.object({
|
|
10198
|
+
metadataPath: z.string().describe("Path to the comparison metadata."),
|
|
10199
|
+
indexColumn: z.string().optional().describe("Provide a column to use for the feature set index, if different than the default dataframe index."),
|
|
10200
|
+
termColumn: z.string().optional(),
|
|
10201
|
+
pValueColumn: z.string(),
|
|
10202
|
+
pValueAdjusted: z.boolean().optional(),
|
|
10203
|
+
analysisType: z.string().optional().describe("Optionally, provide an analysis_type name. By default, pertpy_hypergeometric.")
|
|
10204
|
+
});
|
|
10205
|
+
z.object({
|
|
10206
|
+
metadataPath: z.string().describe("Path to the comparison metadata."),
|
|
10207
|
+
indexColumn: z.string().optional().describe("Provide a column to use for the obs set index, if different than the default dataframe index."),
|
|
10208
|
+
interceptExpectedSampleColumn: z.string().describe("If we had a new sample (with no active covariates) with a total number of cells equal to the mean sampling depth of the dataset, then this distribution over the cell types would be most likely."),
|
|
10209
|
+
effectExpectedSampleColumn: z.string().describe("If we had a new sample (with no active covariates) with a total number of cells equal to the mean sampling depth of the dataset, then this distribution over the cell types would be most likely."),
|
|
10210
|
+
foldChangeColumn: z.string().describe("The log-fold change is then calculated between this expected sample and the expected sample with no active covariates from the intercept section."),
|
|
10211
|
+
foldChangeTransformation: z.enum(["log2"]).optional(),
|
|
10212
|
+
isCredibleEffectColumn: z.string().describe("Column which annotates effects as being credible or not (boolean)."),
|
|
10213
|
+
covariateColumn: z.string().describe("Column which defines the covariate used in the analysis."),
|
|
10214
|
+
analysisType: z.string().optional().describe("Optionally, provide an analysis_type name. By default, sccoda_df.")
|
|
10215
|
+
});
|
|
9894
10216
|
const annDataObsLabels = annDataObs;
|
|
9895
10217
|
const annDataFeatureLabels = annDataObs;
|
|
9896
10218
|
const annDataSampleEdges = annDataObs;
|
|
@@ -9910,6 +10232,9 @@ const annDataObsSetsArr = z.array(z.object({
|
|
|
9910
10232
|
z.object({
|
|
9911
10233
|
obsSets: annDataObsSetsArr
|
|
9912
10234
|
});
|
|
10235
|
+
z.object({
|
|
10236
|
+
sampleSets: annDataObsSetsArr
|
|
10237
|
+
});
|
|
9913
10238
|
const annDataObsFeatureColumnsArr = z.array(z.object({
|
|
9914
10239
|
path: z.string()
|
|
9915
10240
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/csv",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.8",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"d3-array": "^2.4.0",
|
|
20
20
|
"d3-dsv": "^1.1.1",
|
|
21
|
-
"@vitessce/constants-internal": "3.5.
|
|
22
|
-
"@vitessce/sets-utils": "3.5.
|
|
23
|
-
"@vitessce/abstract": "3.5.
|
|
24
|
-
"@vitessce/config": "3.5.
|
|
21
|
+
"@vitessce/constants-internal": "3.5.8",
|
|
22
|
+
"@vitessce/sets-utils": "3.5.8",
|
|
23
|
+
"@vitessce/abstract": "3.5.8",
|
|
24
|
+
"@vitessce/config": "3.5.8"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",
|