@vitessce/schemas 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 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
- console.warn(`Warning: the '${oldProp}' prop on the ${viewDef.component} view is deprecated. Please use the '${newType}' coordination type instead.`);
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
- console.error("Expected coordinationScopes.dataset value to be either string or string[], but got object.");
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") {
@@ -7912,9 +8164,15 @@ const ViewType$1 = {
7912
8164
  FEATURE_VALUE_HISTOGRAM: "featureValueHistogram",
7913
8165
  DOT_PLOT: "dotPlot",
7914
8166
  FEATURE_BAR_PLOT: "featureBarPlot",
8167
+ VOLCANO_PLOT: "volcanoPlot",
8168
+ OBS_SET_COMPOSITION_BAR_PLOT: "obsSetCompositionBarPlot",
8169
+ FEATURE_SET_ENRICHMENT_BAR_PLOT: "featureSetEnrichmentBarPlot",
7915
8170
  BIOMARKER_SELECT: "biomarkerSelect",
8171
+ COMPARATIVE_HEADING: "comparativeHeading",
7916
8172
  LINK_CONTROLLER: "linkController",
7917
- DUAL_SCATTERPLOT: "dualScatterplot"
8173
+ NEUROGLANCER: "neuroglancer",
8174
+ DUAL_SCATTERPLOT: "dualScatterplot",
8175
+ TREEMAP: "treemap"
7918
8176
  };
7919
8177
  const DataType$1 = {
7920
8178
  OBS_LABELS: "obsLabels",
@@ -7930,7 +8188,11 @@ const DataType$1 = {
7930
8188
  OBS_POINTS: "obsPoints",
7931
8189
  OBS_LOCATIONS: "obsLocations",
7932
8190
  SAMPLE_SETS: "sampleSets",
7933
- SAMPLE_EDGES: "sampleEdges"
8191
+ SAMPLE_EDGES: "sampleEdges",
8192
+ COMPARISON_METADATA: "comparisonMetadata",
8193
+ FEATURE_STATS: "featureStats",
8194
+ FEATURE_SET_STATS: "featureSetStats",
8195
+ OBS_SET_STATS: "obsSetStats"
7934
8196
  };
7935
8197
  const FileType$1 = {
7936
8198
  // Joint file types
@@ -7968,6 +8230,11 @@ const FileType$1 = {
7968
8230
  OBS_LABELS_ANNDATA_ZARR: "obsLabels.anndata.zarr",
7969
8231
  FEATURE_LABELS_ANNDATA_ZARR: "featureLabels.anndata.zarr",
7970
8232
  SAMPLE_EDGES_ANNDATA_ZARR: "sampleEdges.anndata.zarr",
8233
+ SAMPLE_SETS_ANNDATA_ZARR: "sampleSets.anndata.zarr",
8234
+ COMPARISON_METADATA_ANNDATA_ZARR: "comparisonMetadata.anndata.zarr",
8235
+ COMPARATIVE_FEATURE_STATS_ANNDATA_ZARR: "comparativeFeatureStats.anndata.zarr",
8236
+ COMPARATIVE_FEATURE_SET_STATS_ANNDATA_ZARR: "comparativeFeatureSetStats.anndata.zarr",
8237
+ COMPARATIVE_OBS_SET_STATS_ANNDATA_ZARR: "comparativeObsSetStats.anndata.zarr",
7971
8238
  // AnnData - zipped
7972
8239
  OBS_FEATURE_MATRIX_ANNDATA_ZARR_ZIP: "obsFeatureMatrix.anndata.zarr.zip",
7973
8240
  OBS_FEATURE_COLUMNS_ANNDATA_ZARR_ZIP: "obsFeatureColumns.anndata.zarr.zip",
@@ -7980,6 +8247,11 @@ const FileType$1 = {
7980
8247
  OBS_LABELS_ANNDATA_ZARR_ZIP: "obsLabels.anndata.zarr.zip",
7981
8248
  FEATURE_LABELS_ANNDATA_ZARR_ZIP: "featureLabels.anndata.zarr.zip",
7982
8249
  SAMPLE_EDGES_ANNDATA_ZARR_ZIP: "sampleEdges.anndata.zarr.zip",
8250
+ SAMPLE_SETS_ANNDATA_ZARR_ZIP: "sampleSets.anndata.zarr.zip",
8251
+ COMPARISON_METADATA_ANNDATA_ZARR_ZIP: "comparisonMetadata.anndata.zarr.zip",
8252
+ COMPARATIVE_FEATURE_STATS_ANNDATA_ZARR_ZIP: "comparativeFeatureStats.anndata.zarr.zip",
8253
+ COMPARATIVE_FEATURE_SET_STATS_ANNDATA_ZARR_ZIP: "comparativeFeatureSetStats.anndata.zarr.zip",
8254
+ COMPARATIVE_OBS_SET_STATS_ANNDATA_ZARR_ZIP: "comparativeObsSetStats.anndata.zarr.zip",
7983
8255
  // AnnData - h5ad via reference spec
7984
8256
  OBS_FEATURE_MATRIX_ANNDATA_H5AD: "obsFeatureMatrix.anndata.h5ad",
7985
8257
  OBS_FEATURE_COLUMNS_ANNDATA_H5AD: "obsFeatureColumns.anndata.h5ad",
@@ -7992,6 +8264,11 @@ const FileType$1 = {
7992
8264
  OBS_LABELS_ANNDATA_H5AD: "obsLabels.anndata.h5ad",
7993
8265
  FEATURE_LABELS_ANNDATA_H5AD: "featureLabels.anndata.h5ad",
7994
8266
  SAMPLE_EDGES_ANNDATA_H5AD: "sampleEdges.anndata.h5ad",
8267
+ SAMPLE_SETS_ANNDATA_H5AD: "sampleSets.anndata.h5ad",
8268
+ COMPARISON_METADATA_ANNDATA_H5AD: "comparisonMetadata.anndata.h5ad",
8269
+ COMPARATIVE_FEATURE_STATS_ANNDATA_H5AD: "comparativeFeatureStats.anndata.h5ad",
8270
+ COMPARATIVE_FEATURE_SET_STATS_ANNDATA_H5AD: "comparativeFeatureSetStats.anndata.h5ad",
8271
+ COMPARATIVE_OBS_SET_STATS_ANNDATA_H5AD: "comparativeObsSetStats.anndata.h5ad",
7995
8272
  // SpatialData
7996
8273
  IMAGE_SPATIALDATA_ZARR: "image.spatialdata.zarr",
7997
8274
  LABELS_SPATIALDATA_ZARR: "labels.spatialdata.zarr",
@@ -8183,12 +8460,20 @@ const CoordinationType$1 = {
8183
8460
  SAMPLE_SET_FILTER: "sampleSetFilter",
8184
8461
  SAMPLE_FILTER_MODE: "sampleFilterMode",
8185
8462
  SAMPLE_SET_COLOR: "sampleSetColor",
8463
+ SAMPLE_HIGHLIGHT: "sampleHighlight",
8186
8464
  EMBEDDING_POINTS_VISIBLE: "embeddingPointsVisible",
8187
8465
  EMBEDDING_CONTOURS_VISIBLE: "embeddingContoursVisible",
8188
8466
  EMBEDDING_CONTOURS_FILLED: "embeddingContoursFilled",
8189
8467
  EMBEDDING_CONTOUR_PERCENTILES: "embeddingContourPercentiles",
8190
8468
  CONTOUR_COLOR_ENCODING: "contourColorEncoding",
8191
- CONTOUR_COLOR: "contourColor"
8469
+ CONTOUR_COLOR: "contourColor",
8470
+ // For volcano plot:
8471
+ FEATURE_POINT_SIGNIFICANCE_THRESHOLD: "featurePointSignificanceThreshold",
8472
+ FEATURE_LABEL_SIGNIFICANCE_THRESHOLD: "featureLabelSignificanceThreshold",
8473
+ FEATURE_POINT_FOLD_CHANGE_THRESHOLD: "featurePointFoldChangeThreshold",
8474
+ FEATURE_LABEL_FOLD_CHANGE_THRESHOLD: "featureLabelFoldChangeThreshold",
8475
+ // Treemap
8476
+ HIERARCHY_LEVELS: "hierarchyLevels"
8192
8477
  };
8193
8478
  const ViewType = {
8194
8479
  GENES: [
@@ -8356,7 +8641,7 @@ function makeConstantWithDeprecationMessage(currObj, oldObj) {
8356
8641
  const oldKeys = Object.keys(oldObj);
8357
8642
  const propKey = String(prop);
8358
8643
  if (oldKeys.includes(propKey)) {
8359
- console.warn(`Notice about the constant mapping ${propKey}: '${oldObj[propKey][0]}':
8644
+ log.warn(`Notice about the constant mapping ${propKey}: '${oldObj[propKey][0]}':
8360
8645
  ${oldObj[propKey][1]}`);
8361
8646
  return oldObj[propKey];
8362
8647
  }
@@ -8572,6 +8857,42 @@ const annDataConvenienceObsEmbeddingItem = z.object({
8572
8857
  dims: z.array(z.number()).optional(),
8573
8858
  embeddingType: z.string()
8574
8859
  });
8860
+ const annDataComparisonMetadata = z.object({
8861
+ path: z.string().describe("Path to the comparison metadata, such as /uns/comparison_metadata")
8862
+ });
8863
+ const annDataFeatureStats = z.object({
8864
+ // TODO: implement a featureStats.anndata.zarr loader
8865
+ // which does not depend on comparisonMetadata
8866
+ // (instead, would point directly to the root of
8867
+ // the dataframe containing a set of diff exp results)
8868
+ // path: z.string().describe('Path to the dataframe containing the results.'),
8869
+ metadataPath: z.string().describe("Path to the comparison metadata."),
8870
+ indexColumn: z.string().optional().describe("Provide a column to use for the feature index, if different than the default dataframe index."),
8871
+ pValueColumn: z.string(),
8872
+ foldChangeColumn: z.string(),
8873
+ pValueTransformation: z.enum(["minuslog10"]).optional(),
8874
+ pValueAdjusted: z.boolean().optional(),
8875
+ foldChangeTransformation: z.enum(["log2"]).optional()
8876
+ });
8877
+ const annDataFeatureSetStats = z.object({
8878
+ metadataPath: z.string().describe("Path to the comparison metadata."),
8879
+ indexColumn: z.string().optional().describe("Provide a column to use for the feature set index, if different than the default dataframe index."),
8880
+ termColumn: z.string().optional(),
8881
+ pValueColumn: z.string(),
8882
+ pValueAdjusted: z.boolean().optional(),
8883
+ analysisType: z.string().optional().describe("Optionally, provide an analysis_type name. By default, pertpy_hypergeometric.")
8884
+ });
8885
+ const annDataObsSetStats = z.object({
8886
+ metadataPath: z.string().describe("Path to the comparison metadata."),
8887
+ indexColumn: z.string().optional().describe("Provide a column to use for the obs set index, if different than the default dataframe index."),
8888
+ 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."),
8889
+ 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."),
8890
+ 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."),
8891
+ foldChangeTransformation: z.enum(["log2"]).optional(),
8892
+ isCredibleEffectColumn: z.string().describe("Column which annotates effects as being credible or not (boolean)."),
8893
+ covariateColumn: z.string().describe("Column which defines the covariate used in the analysis."),
8894
+ analysisType: z.string().optional().describe("Optionally, provide an analysis_type name. By default, sccoda_df.")
8895
+ });
8575
8896
  const annDataObsLabels = annDataObs;
8576
8897
  const annDataFeatureLabels = annDataObs;
8577
8898
  const annDataSampleEdges = annDataObs;
@@ -8593,6 +8914,9 @@ const annDataObsSetsArr = z.array(
8593
8914
  const annDataObsSets = z.object({
8594
8915
  obsSets: annDataObsSetsArr
8595
8916
  });
8917
+ const annDataSampleSets = z.object({
8918
+ sampleSets: annDataObsSetsArr
8919
+ });
8596
8920
  const annDataObsFeatureColumnsArr = z.array(
8597
8921
  z.object({
8598
8922
  path: z.string()
@@ -8685,11 +9009,16 @@ const obsPointsAnndataSchema = annDataObsLocations;
8685
9009
  const obsLocationsAnndataSchema = annDataObsLocations;
8686
9010
  const obsSegmentationsAnndataSchema = annDataObsSegmentations;
8687
9011
  const obsSetsAnndataSchema = annDataObsSets;
9012
+ const sampleSetsAnndataSchema = annDataSampleSets;
8688
9013
  const obsFeatureMatrixAnndataSchema = annDataObsFeatureMatrix;
8689
9014
  const obsLabelsAnndataSchema = annDataObsLabels;
8690
9015
  const featureLabelsAnndataSchema = annDataFeatureLabels;
8691
9016
  const obsFeatureColumnsAnndataSchema = annDataObsFeatureColumns;
8692
9017
  const sampleEdgesAnndataSchema = annDataSampleEdges;
9018
+ const comparisonMetadataAnndataSchema = annDataComparisonMetadata;
9019
+ const featureStatsAnndataSchema = annDataFeatureStats;
9020
+ const featureSetStatsAnndataSchema = annDataFeatureSetStats;
9021
+ const obsSetStatsAnndataSchema = annDataObsSetStats;
8693
9022
  const obsEmbeddingCsvSchema = z.object({
8694
9023
  obsIndex: z.string(),
8695
9024
  obsEmbedding: z.array(z.string()).length(2)
@@ -8879,8 +9208,11 @@ export {
8879
9208
  buildConfigSchema,
8880
9209
  cellsJsonSchema,
8881
9210
  cellsLayerObj,
9211
+ comparisonMetadataAnndataSchema,
8882
9212
  featureLabelsAnndataSchema,
8883
9213
  featureLabelsCsvSchema,
9214
+ featureSetStatsAnndataSchema,
9215
+ featureStatsAnndataSchema,
8884
9216
  imageLayerObj,
8885
9217
  imageOmeTiffSchema,
8886
9218
  imageOmeZarrSchema,
@@ -8907,6 +9239,7 @@ export {
8907
9239
  obsSegmentationsOmeZarrSchema,
8908
9240
  obsSegmentationsSpatialdataSchema,
8909
9241
  obsSetPath,
9242
+ obsSetStatsAnndataSchema,
8910
9243
  obsSetsAnndataSchema,
8911
9244
  obsSetsCsvSchema,
8912
9245
  obsSetsSchema,
@@ -8918,6 +9251,7 @@ export {
8918
9251
  rasterJsonSchema,
8919
9252
  rgbArray,
8920
9253
  sampleEdgesAnndataSchema,
9254
+ sampleSetsAnndataSchema,
8921
9255
  sampleSetsCsvSchema,
8922
9256
  spatialdataZarrSchema,
8923
9257
  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>;
@@ -477,6 +504,91 @@ export declare const sampleEdgesAnndataSchema: z.ZodObject<{
477
504
  }, {
478
505
  path: string;
479
506
  }>;
507
+ export declare const comparisonMetadataAnndataSchema: z.ZodObject<{
508
+ path: z.ZodString;
509
+ }, "strip", z.ZodTypeAny, {
510
+ path: string;
511
+ }, {
512
+ path: string;
513
+ }>;
514
+ export declare const featureStatsAnndataSchema: z.ZodObject<{
515
+ metadataPath: z.ZodString;
516
+ indexColumn: z.ZodOptional<z.ZodString>;
517
+ pValueColumn: z.ZodString;
518
+ foldChangeColumn: z.ZodString;
519
+ pValueTransformation: z.ZodOptional<z.ZodEnum<["minuslog10"]>>;
520
+ pValueAdjusted: z.ZodOptional<z.ZodBoolean>;
521
+ foldChangeTransformation: z.ZodOptional<z.ZodEnum<["log2"]>>;
522
+ }, "strip", z.ZodTypeAny, {
523
+ metadataPath: string;
524
+ pValueColumn: string;
525
+ foldChangeColumn: string;
526
+ indexColumn?: string | undefined;
527
+ pValueTransformation?: "minuslog10" | undefined;
528
+ pValueAdjusted?: boolean | undefined;
529
+ foldChangeTransformation?: "log2" | undefined;
530
+ }, {
531
+ metadataPath: string;
532
+ pValueColumn: string;
533
+ foldChangeColumn: string;
534
+ indexColumn?: string | undefined;
535
+ pValueTransformation?: "minuslog10" | undefined;
536
+ pValueAdjusted?: boolean | undefined;
537
+ foldChangeTransformation?: "log2" | undefined;
538
+ }>;
539
+ export declare const featureSetStatsAnndataSchema: z.ZodObject<{
540
+ metadataPath: z.ZodString;
541
+ indexColumn: z.ZodOptional<z.ZodString>;
542
+ termColumn: z.ZodOptional<z.ZodString>;
543
+ pValueColumn: z.ZodString;
544
+ pValueAdjusted: z.ZodOptional<z.ZodBoolean>;
545
+ analysisType: z.ZodOptional<z.ZodString>;
546
+ }, "strip", z.ZodTypeAny, {
547
+ metadataPath: string;
548
+ pValueColumn: string;
549
+ indexColumn?: string | undefined;
550
+ termColumn?: string | undefined;
551
+ pValueAdjusted?: boolean | undefined;
552
+ analysisType?: string | undefined;
553
+ }, {
554
+ metadataPath: string;
555
+ pValueColumn: string;
556
+ indexColumn?: string | undefined;
557
+ termColumn?: string | undefined;
558
+ pValueAdjusted?: boolean | undefined;
559
+ analysisType?: string | undefined;
560
+ }>;
561
+ export declare const obsSetStatsAnndataSchema: z.ZodObject<{
562
+ metadataPath: z.ZodString;
563
+ indexColumn: z.ZodOptional<z.ZodString>;
564
+ interceptExpectedSampleColumn: z.ZodString;
565
+ effectExpectedSampleColumn: z.ZodString;
566
+ foldChangeColumn: z.ZodString;
567
+ foldChangeTransformation: z.ZodOptional<z.ZodEnum<["log2"]>>;
568
+ isCredibleEffectColumn: z.ZodString;
569
+ covariateColumn: z.ZodString;
570
+ analysisType: z.ZodOptional<z.ZodString>;
571
+ }, "strip", z.ZodTypeAny, {
572
+ metadataPath: string;
573
+ foldChangeColumn: string;
574
+ interceptExpectedSampleColumn: string;
575
+ effectExpectedSampleColumn: string;
576
+ isCredibleEffectColumn: string;
577
+ covariateColumn: string;
578
+ indexColumn?: string | undefined;
579
+ foldChangeTransformation?: "log2" | undefined;
580
+ analysisType?: string | undefined;
581
+ }, {
582
+ metadataPath: string;
583
+ foldChangeColumn: string;
584
+ interceptExpectedSampleColumn: string;
585
+ effectExpectedSampleColumn: string;
586
+ isCredibleEffectColumn: string;
587
+ covariateColumn: string;
588
+ indexColumn?: string | undefined;
589
+ foldChangeTransformation?: "log2" | undefined;
590
+ analysisType?: string | undefined;
591
+ }>;
480
592
  export declare const obsEmbeddingCsvSchema: z.ZodObject<{
481
593
  obsIndex: z.ZodString;
482
594
  obsEmbedding: z.ZodArray<z.ZodString, "many">;
@@ -583,19 +695,19 @@ export declare const sampleSetsCsvSchema: z.ZodObject<{
583
695
  scoreColumn?: string | undefined;
584
696
  }>, "many">;
585
697
  }, "strip", z.ZodTypeAny, {
586
- sampleIndex: string;
587
698
  sampleSets: {
588
699
  name: string;
589
700
  column: (string | string[]) & (string | string[] | undefined);
590
701
  scoreColumn?: string | undefined;
591
702
  }[];
592
- }, {
593
703
  sampleIndex: string;
704
+ }, {
594
705
  sampleSets: {
595
706
  name: string;
596
707
  column: (string | string[]) & (string | string[] | undefined);
597
708
  scoreColumn?: string | undefined;
598
709
  }[];
710
+ sampleIndex: string;
599
711
  }>;
600
712
  /**
601
713
  * 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,EAAE,MAAM,KAAK,CAAC;AAqGxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK7B,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGxC,CAAC;AAGH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG7B,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGxC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O,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE5B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBtB,CAAC"}
@@ -22,6 +22,64 @@ const annDataConvenienceObsEmbeddingItem = z.object({
22
22
  .optional(),
23
23
  embeddingType: z.string(),
24
24
  });
25
+ const annDataComparisonMetadata = z.object({
26
+ path: z.string().describe('Path to the comparison metadata, such as /uns/comparison_metadata'),
27
+ });
28
+ const annDataFeatureStats = z.object({
29
+ // TODO: implement a featureStats.anndata.zarr loader
30
+ // which does not depend on comparisonMetadata
31
+ // (instead, would point directly to the root of
32
+ // the dataframe containing a set of diff exp results)
33
+ // path: z.string().describe('Path to the dataframe containing the results.'),
34
+ metadataPath: z.string().describe('Path to the comparison metadata.'),
35
+ indexColumn: z.string()
36
+ .optional()
37
+ .describe('Provide a column to use for the feature index, if different than the default dataframe index.'),
38
+ pValueColumn: z.string(),
39
+ foldChangeColumn: z.string(),
40
+ pValueTransformation: z.enum(['minuslog10'])
41
+ .optional(),
42
+ pValueAdjusted: z.boolean()
43
+ .optional(),
44
+ foldChangeTransformation: z.enum(['log2'])
45
+ .optional(),
46
+ });
47
+ const annDataFeatureSetStats = z.object({
48
+ metadataPath: z.string().describe('Path to the comparison metadata.'),
49
+ indexColumn: z.string()
50
+ .optional()
51
+ .describe('Provide a column to use for the feature set index, if different than the default dataframe index.'),
52
+ termColumn: z.string()
53
+ .optional(),
54
+ pValueColumn: z.string(),
55
+ pValueAdjusted: z.boolean()
56
+ .optional(),
57
+ analysisType: z.string()
58
+ .optional()
59
+ .describe('Optionally, provide an analysis_type name. By default, pertpy_hypergeometric.'),
60
+ });
61
+ // Reference: https://pertpy.readthedocs.io/en/stable/tutorials/notebooks/sccoda.html#Result-interpretation
62
+ const annDataObsSetStats = z.object({
63
+ metadataPath: z.string().describe('Path to the comparison metadata.'),
64
+ indexColumn: z.string()
65
+ .optional()
66
+ .describe('Provide a column to use for the obs set index, if different than the default dataframe index.'),
67
+ interceptExpectedSampleColumn: z.string()
68
+ .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.'),
69
+ effectExpectedSampleColumn: z.string()
70
+ .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.'),
71
+ foldChangeColumn: z.string()
72
+ .describe('The log-fold change is then calculated between this expected sample and the expected sample with no active covariates from the intercept section.'),
73
+ foldChangeTransformation: z.enum(['log2'])
74
+ .optional(),
75
+ isCredibleEffectColumn: z.string()
76
+ .describe('Column which annotates effects as being credible or not (boolean).'),
77
+ covariateColumn: z.string()
78
+ .describe('Column which defines the covariate used in the analysis.'),
79
+ analysisType: z.string()
80
+ .optional()
81
+ .describe('Optionally, provide an analysis_type name. By default, sccoda_df.'),
82
+ });
25
83
  const annDataObsLabels = annDataObs;
26
84
  const annDataFeatureLabels = annDataObs;
27
85
  const annDataSampleEdges = annDataObs;
@@ -52,6 +110,9 @@ const annDataObsSetsArr = z.array(z.object({
52
110
  const annDataObsSets = z.object({
53
111
  obsSets: annDataObsSetsArr,
54
112
  });
113
+ const annDataSampleSets = z.object({
114
+ sampleSets: annDataObsSetsArr,
115
+ });
55
116
  const annDataObsFeatureColumnsArr = z.array(z.object({
56
117
  path: z.string(),
57
118
  }));
@@ -181,11 +242,16 @@ export const obsPointsAnndataSchema = annDataObsLocations;
181
242
  export const obsLocationsAnndataSchema = annDataObsLocations;
182
243
  export const obsSegmentationsAnndataSchema = annDataObsSegmentations;
183
244
  export const obsSetsAnndataSchema = annDataObsSets;
245
+ export const sampleSetsAnndataSchema = annDataSampleSets;
184
246
  export const obsFeatureMatrixAnndataSchema = annDataObsFeatureMatrix;
185
247
  export const obsLabelsAnndataSchema = annDataObsLabels;
186
248
  export const featureLabelsAnndataSchema = annDataFeatureLabels;
187
249
  export const obsFeatureColumnsAnndataSchema = annDataObsFeatureColumns;
188
250
  export const sampleEdgesAnndataSchema = annDataSampleEdges;
251
+ export const comparisonMetadataAnndataSchema = annDataComparisonMetadata;
252
+ export const featureStatsAnndataSchema = annDataFeatureStats;
253
+ export const featureSetStatsAnndataSchema = annDataFeatureSetStats;
254
+ export const obsSetStatsAnndataSchema = annDataObsSetStats;
189
255
  // CSV
190
256
  export const obsEmbeddingCsvSchema = z.object({
191
257
  obsIndex: z.string(),
@@ -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, comparisonMetadataAnndataSchema, featureStatsAnndataSchema, featureSetStatsAnndataSchema, obsSetStatsAnndataSchema, 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":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,kBAAkB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,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,uBAAuB,EACvB,yBAAyB,EACzB,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,sBAAsB,EACtB,6BAA6B,EAC7B,8BAA8B,EAC9B,6BAA6B,EAC7B,0BAA0B,EAC1B,wBAAwB,EACxB,+BAA+B,EAC/B,yBAAyB,EACzB,4BAA4B,EAC5B,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,uBAAuB,CAAC;AAC/B,OAAO,EACL,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, comparisonMetadataAnndataSchema, featureStatsAnndataSchema, featureSetStatsAnndataSchema, obsSetStatsAnndataSchema, 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;AAKxB,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,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,8BAA8B,CAAC;AAqDtC;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,EACzC,UAAU,GAAE,MAAM,GAAG,IAAW,GAC/B,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAoGnC;AAED,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,GACxC,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAyEnC;AAMD,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,GACxC,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAmCnC;AAED,wBAAgB,g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KAAK,CAAC,OAAO,kBAAkB,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
- console.warn(`Warning: the '${oldProp}' prop on the ${viewDef.component} view is deprecated. Please use the '${newType}' coordination type instead.`);
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
- console.error('Expected coordinationScopes.dataset value to be either string or string[], but got object.');
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.6",
3
+ "version": "3.5.8",
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.6",
27
- "@vitessce/constants-internal": "3.5.6",
28
- "@vitessce/plugins": "3.5.6",
29
- "@vitessce/utils": "3.5.6"
26
+ "@vitessce/constants": "3.5.8",
27
+ "@vitessce/constants-internal": "3.5.8",
28
+ "@vitessce/plugins": "3.5.8",
29
+ "@vitessce/utils": "3.5.8",
30
+ "@vitessce/globals": "3.5.8"
30
31
  },
31
32
  "devDependencies": {
32
33
  "json-schema-to-zod": "^0.6.3",
@@ -28,6 +28,68 @@ const annDataConvenienceObsEmbeddingItem = z.object({
28
28
  embeddingType: z.string(),
29
29
  });
30
30
 
31
+ const annDataComparisonMetadata = z.object({
32
+ path: z.string().describe('Path to the comparison metadata, such as /uns/comparison_metadata'),
33
+ });
34
+
35
+ const annDataFeatureStats = z.object({
36
+ // TODO: implement a featureStats.anndata.zarr loader
37
+ // which does not depend on comparisonMetadata
38
+ // (instead, would point directly to the root of
39
+ // the dataframe containing a set of diff exp results)
40
+ // path: z.string().describe('Path to the dataframe containing the results.'),
41
+ metadataPath: z.string().describe('Path to the comparison metadata.'),
42
+ indexColumn: z.string()
43
+ .optional()
44
+ .describe('Provide a column to use for the feature index, if different than the default dataframe index.'),
45
+ pValueColumn: z.string(),
46
+ foldChangeColumn: z.string(),
47
+ pValueTransformation: z.enum(['minuslog10'])
48
+ .optional(),
49
+ pValueAdjusted: z.boolean()
50
+ .optional(),
51
+ foldChangeTransformation: z.enum(['log2'])
52
+ .optional(),
53
+ });
54
+
55
+ const annDataFeatureSetStats = z.object({
56
+ metadataPath: z.string().describe('Path to the comparison metadata.'),
57
+ indexColumn: z.string()
58
+ .optional()
59
+ .describe('Provide a column to use for the feature set index, if different than the default dataframe index.'),
60
+ termColumn: z.string()
61
+ .optional(),
62
+ pValueColumn: z.string(),
63
+ pValueAdjusted: z.boolean()
64
+ .optional(),
65
+ analysisType: z.string()
66
+ .optional()
67
+ .describe('Optionally, provide an analysis_type name. By default, pertpy_hypergeometric.'),
68
+ });
69
+
70
+ // Reference: https://pertpy.readthedocs.io/en/stable/tutorials/notebooks/sccoda.html#Result-interpretation
71
+ const annDataObsSetStats = z.object({
72
+ metadataPath: z.string().describe('Path to the comparison metadata.'),
73
+ indexColumn: z.string()
74
+ .optional()
75
+ .describe('Provide a column to use for the obs set index, if different than the default dataframe index.'),
76
+ interceptExpectedSampleColumn: z.string()
77
+ .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.'),
78
+ effectExpectedSampleColumn: z.string()
79
+ .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.'),
80
+ foldChangeColumn: z.string()
81
+ .describe('The log-fold change is then calculated between this expected sample and the expected sample with no active covariates from the intercept section.'),
82
+ foldChangeTransformation: z.enum(['log2'])
83
+ .optional(),
84
+ isCredibleEffectColumn: z.string()
85
+ .describe('Column which annotates effects as being credible or not (boolean).'),
86
+ covariateColumn: z.string()
87
+ .describe('Column which defines the covariate used in the analysis.'),
88
+ analysisType: z.string()
89
+ .optional()
90
+ .describe('Optionally, provide an analysis_type name. By default, sccoda_df.'),
91
+ });
92
+
31
93
  const annDataObsLabels = annDataObs;
32
94
  const annDataFeatureLabels = annDataObs;
33
95
  const annDataSampleEdges = annDataObs;
@@ -62,6 +124,9 @@ const annDataObsSetsArr = z.array(
62
124
  const annDataObsSets = z.object({
63
125
  obsSets: annDataObsSetsArr,
64
126
  });
127
+ const annDataSampleSets = z.object({
128
+ sampleSets: annDataObsSetsArr,
129
+ });
65
130
 
66
131
  const annDataObsFeatureColumnsArr = z.array(
67
132
  z.object({
@@ -204,12 +269,18 @@ export const obsPointsAnndataSchema = annDataObsLocations;
204
269
  export const obsLocationsAnndataSchema = annDataObsLocations;
205
270
  export const obsSegmentationsAnndataSchema = annDataObsSegmentations;
206
271
  export const obsSetsAnndataSchema = annDataObsSets;
272
+ export const sampleSetsAnndataSchema = annDataSampleSets;
207
273
  export const obsFeatureMatrixAnndataSchema = annDataObsFeatureMatrix;
208
274
  export const obsLabelsAnndataSchema = annDataObsLabels;
209
275
  export const featureLabelsAnndataSchema = annDataFeatureLabels;
210
276
  export const obsFeatureColumnsAnndataSchema = annDataObsFeatureColumns;
211
277
  export const sampleEdgesAnndataSchema = annDataSampleEdges;
212
278
 
279
+ export const comparisonMetadataAnndataSchema = annDataComparisonMetadata;
280
+ export const featureStatsAnndataSchema = annDataFeatureStats;
281
+ export const featureSetStatsAnndataSchema = annDataFeatureSetStats;
282
+ export const obsSetStatsAnndataSchema = annDataObsSetStats;
283
+
213
284
  // CSV
214
285
  export const obsEmbeddingCsvSchema = z.object({
215
286
  obsIndex: z.string(),
package/src/index.ts CHANGED
@@ -13,6 +13,7 @@ export {
13
13
  featureLabelsCsvSchema,
14
14
  sampleSetsCsvSchema,
15
15
  obsSetsAnndataSchema,
16
+ sampleSetsAnndataSchema,
16
17
  obsEmbeddingAnndataSchema,
17
18
  obsSpotsAnndataSchema,
18
19
  obsPointsAnndataSchema,
@@ -23,6 +24,10 @@ export {
23
24
  obsSegmentationsAnndataSchema,
24
25
  featureLabelsAnndataSchema,
25
26
  sampleEdgesAnndataSchema,
27
+ comparisonMetadataAnndataSchema,
28
+ featureStatsAnndataSchema,
29
+ featureSetStatsAnndataSchema,
30
+ obsSetStatsAnndataSchema,
26
31
  anndataZarrSchema,
27
32
  anndataH5adSchema,
28
33
  spatialdataZarrSchema,
@@ -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
- console.warn(`Warning: the '${oldProp}' prop on the ${viewDef.component} view is deprecated. Please use the '${newType}' coordination type instead.`);
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
- console.error('Expected coordinationScopes.dataset value to be either string or string[], but got object.');
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') {