@vitessce/schemas 3.5.7 → 3.5.9
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 +71 -1
- package/dist-tsc/file-def-options.d.ts +85 -0
- package/dist-tsc/file-def-options.d.ts.map +1 -1
- package/dist-tsc/file-def-options.js +62 -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/package.json +6 -6
- package/src/file-def-options.ts +67 -0
- package/src/index.ts +4 -0
package/dist/index.js
CHANGED
|
@@ -8164,8 +8164,13 @@ const ViewType$1 = {
|
|
|
8164
8164
|
FEATURE_VALUE_HISTOGRAM: "featureValueHistogram",
|
|
8165
8165
|
DOT_PLOT: "dotPlot",
|
|
8166
8166
|
FEATURE_BAR_PLOT: "featureBarPlot",
|
|
8167
|
+
VOLCANO_PLOT: "volcanoPlot",
|
|
8168
|
+
OBS_SET_COMPOSITION_BAR_PLOT: "obsSetCompositionBarPlot",
|
|
8169
|
+
FEATURE_SET_ENRICHMENT_BAR_PLOT: "featureSetEnrichmentBarPlot",
|
|
8167
8170
|
BIOMARKER_SELECT: "biomarkerSelect",
|
|
8171
|
+
COMPARATIVE_HEADING: "comparativeHeading",
|
|
8168
8172
|
LINK_CONTROLLER: "linkController",
|
|
8173
|
+
NEUROGLANCER: "neuroglancer",
|
|
8169
8174
|
DUAL_SCATTERPLOT: "dualScatterplot",
|
|
8170
8175
|
TREEMAP: "treemap"
|
|
8171
8176
|
};
|
|
@@ -8183,7 +8188,11 @@ const DataType$1 = {
|
|
|
8183
8188
|
OBS_POINTS: "obsPoints",
|
|
8184
8189
|
OBS_LOCATIONS: "obsLocations",
|
|
8185
8190
|
SAMPLE_SETS: "sampleSets",
|
|
8186
|
-
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"
|
|
8187
8196
|
};
|
|
8188
8197
|
const FileType$1 = {
|
|
8189
8198
|
// Joint file types
|
|
@@ -8222,6 +8231,10 @@ const FileType$1 = {
|
|
|
8222
8231
|
FEATURE_LABELS_ANNDATA_ZARR: "featureLabels.anndata.zarr",
|
|
8223
8232
|
SAMPLE_EDGES_ANNDATA_ZARR: "sampleEdges.anndata.zarr",
|
|
8224
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",
|
|
8225
8238
|
// AnnData - zipped
|
|
8226
8239
|
OBS_FEATURE_MATRIX_ANNDATA_ZARR_ZIP: "obsFeatureMatrix.anndata.zarr.zip",
|
|
8227
8240
|
OBS_FEATURE_COLUMNS_ANNDATA_ZARR_ZIP: "obsFeatureColumns.anndata.zarr.zip",
|
|
@@ -8235,6 +8248,10 @@ const FileType$1 = {
|
|
|
8235
8248
|
FEATURE_LABELS_ANNDATA_ZARR_ZIP: "featureLabels.anndata.zarr.zip",
|
|
8236
8249
|
SAMPLE_EDGES_ANNDATA_ZARR_ZIP: "sampleEdges.anndata.zarr.zip",
|
|
8237
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",
|
|
8238
8255
|
// AnnData - h5ad via reference spec
|
|
8239
8256
|
OBS_FEATURE_MATRIX_ANNDATA_H5AD: "obsFeatureMatrix.anndata.h5ad",
|
|
8240
8257
|
OBS_FEATURE_COLUMNS_ANNDATA_H5AD: "obsFeatureColumns.anndata.h5ad",
|
|
@@ -8248,6 +8265,10 @@ const FileType$1 = {
|
|
|
8248
8265
|
FEATURE_LABELS_ANNDATA_H5AD: "featureLabels.anndata.h5ad",
|
|
8249
8266
|
SAMPLE_EDGES_ANNDATA_H5AD: "sampleEdges.anndata.h5ad",
|
|
8250
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",
|
|
8251
8272
|
// SpatialData
|
|
8252
8273
|
IMAGE_SPATIALDATA_ZARR: "image.spatialdata.zarr",
|
|
8253
8274
|
LABELS_SPATIALDATA_ZARR: "labels.spatialdata.zarr",
|
|
@@ -8446,6 +8467,11 @@ const CoordinationType$1 = {
|
|
|
8446
8467
|
EMBEDDING_CONTOUR_PERCENTILES: "embeddingContourPercentiles",
|
|
8447
8468
|
CONTOUR_COLOR_ENCODING: "contourColorEncoding",
|
|
8448
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",
|
|
8449
8475
|
// Treemap
|
|
8450
8476
|
HIERARCHY_LEVELS: "hierarchyLevels"
|
|
8451
8477
|
};
|
|
@@ -8831,6 +8857,42 @@ const annDataConvenienceObsEmbeddingItem = z.object({
|
|
|
8831
8857
|
dims: z.array(z.number()).optional(),
|
|
8832
8858
|
embeddingType: z.string()
|
|
8833
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
|
+
});
|
|
8834
8896
|
const annDataObsLabels = annDataObs;
|
|
8835
8897
|
const annDataFeatureLabels = annDataObs;
|
|
8836
8898
|
const annDataSampleEdges = annDataObs;
|
|
@@ -8953,6 +9015,10 @@ const obsLabelsAnndataSchema = annDataObsLabels;
|
|
|
8953
9015
|
const featureLabelsAnndataSchema = annDataFeatureLabels;
|
|
8954
9016
|
const obsFeatureColumnsAnndataSchema = annDataObsFeatureColumns;
|
|
8955
9017
|
const sampleEdgesAnndataSchema = annDataSampleEdges;
|
|
9018
|
+
const comparisonMetadataAnndataSchema = annDataComparisonMetadata;
|
|
9019
|
+
const featureStatsAnndataSchema = annDataFeatureStats;
|
|
9020
|
+
const featureSetStatsAnndataSchema = annDataFeatureSetStats;
|
|
9021
|
+
const obsSetStatsAnndataSchema = annDataObsSetStats;
|
|
8956
9022
|
const obsEmbeddingCsvSchema = z.object({
|
|
8957
9023
|
obsIndex: z.string(),
|
|
8958
9024
|
obsEmbedding: z.array(z.string()).length(2)
|
|
@@ -9142,8 +9208,11 @@ export {
|
|
|
9142
9208
|
buildConfigSchema,
|
|
9143
9209
|
cellsJsonSchema,
|
|
9144
9210
|
cellsLayerObj,
|
|
9211
|
+
comparisonMetadataAnndataSchema,
|
|
9145
9212
|
featureLabelsAnndataSchema,
|
|
9146
9213
|
featureLabelsCsvSchema,
|
|
9214
|
+
featureSetStatsAnndataSchema,
|
|
9215
|
+
featureStatsAnndataSchema,
|
|
9147
9216
|
imageLayerObj,
|
|
9148
9217
|
imageOmeTiffSchema,
|
|
9149
9218
|
imageOmeZarrSchema,
|
|
@@ -9170,6 +9239,7 @@ export {
|
|
|
9170
9239
|
obsSegmentationsOmeZarrSchema,
|
|
9171
9240
|
obsSegmentationsSpatialdataSchema,
|
|
9172
9241
|
obsSetPath,
|
|
9242
|
+
obsSetStatsAnndataSchema,
|
|
9173
9243
|
obsSetsAnndataSchema,
|
|
9174
9244
|
obsSetsCsvSchema,
|
|
9175
9245
|
obsSetsSchema,
|
|
@@ -504,6 +504,91 @@ export declare const sampleEdgesAnndataSchema: z.ZodObject<{
|
|
|
504
504
|
}, {
|
|
505
505
|
path: string;
|
|
506
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
|
+
}>;
|
|
507
592
|
export declare const obsEmbeddingCsvSchema: z.ZodObject<{
|
|
508
593
|
obsIndex: z.ZodString;
|
|
509
594
|
obsEmbedding: z.ZodArray<z.ZodString, "many">;
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"file-def-options.d.ts","sourceRoot":"","sources":["../src/file-def-options.ts"],"names":[],"mappings":"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"}
|
|
@@ -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;
|
|
@@ -190,6 +248,10 @@ export const obsLabelsAnndataSchema = annDataObsLabels;
|
|
|
190
248
|
export const featureLabelsAnndataSchema = annDataFeatureLabels;
|
|
191
249
|
export const obsFeatureColumnsAnndataSchema = annDataObsFeatureColumns;
|
|
192
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;
|
|
193
255
|
// CSV
|
|
194
256
|
export const obsEmbeddingCsvSchema = z.object({
|
|
195
257
|
obsIndex: z.string(),
|
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, 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';
|
|
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';
|
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,uBAAuB,EACvB,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,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"}
|
|
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,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, 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';
|
|
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';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/schemas",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.9",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -23,11 +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.
|
|
30
|
-
"@vitessce/globals": "3.5.
|
|
26
|
+
"@vitessce/constants": "3.5.9",
|
|
27
|
+
"@vitessce/constants-internal": "3.5.9",
|
|
28
|
+
"@vitessce/plugins": "3.5.9",
|
|
29
|
+
"@vitessce/utils": "3.5.9",
|
|
30
|
+
"@vitessce/globals": "3.5.9"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"json-schema-to-zod": "^0.6.3",
|
package/src/file-def-options.ts
CHANGED
|
@@ -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;
|
|
@@ -214,6 +276,11 @@ export const featureLabelsAnndataSchema = annDataFeatureLabels;
|
|
|
214
276
|
export const obsFeatureColumnsAnndataSchema = annDataObsFeatureColumns;
|
|
215
277
|
export const sampleEdgesAnndataSchema = annDataSampleEdges;
|
|
216
278
|
|
|
279
|
+
export const comparisonMetadataAnndataSchema = annDataComparisonMetadata;
|
|
280
|
+
export const featureStatsAnndataSchema = annDataFeatureStats;
|
|
281
|
+
export const featureSetStatsAnndataSchema = annDataFeatureSetStats;
|
|
282
|
+
export const obsSetStatsAnndataSchema = annDataObsSetStats;
|
|
283
|
+
|
|
217
284
|
// CSV
|
|
218
285
|
export const obsEmbeddingCsvSchema = z.object({
|
|
219
286
|
obsIndex: z.string(),
|
package/src/index.ts
CHANGED
|
@@ -24,6 +24,10 @@ export {
|
|
|
24
24
|
obsSegmentationsAnndataSchema,
|
|
25
25
|
featureLabelsAnndataSchema,
|
|
26
26
|
sampleEdgesAnndataSchema,
|
|
27
|
+
comparisonMetadataAnndataSchema,
|
|
28
|
+
featureStatsAnndataSchema,
|
|
29
|
+
featureSetStatsAnndataSchema,
|
|
30
|
+
obsSetStatsAnndataSchema,
|
|
27
31
|
anndataZarrSchema,
|
|
28
32
|
anndataH5adSchema,
|
|
29
33
|
spatialdataZarrSchema,
|