auroraomics 0.1.0.dev0__py3-none-any.whl
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.
- auroraomics/__init__.py +74 -0
- auroraomics/_contracts/MANIFEST.json +11 -0
- auroraomics/_contracts/genes/gene-table.2026-09-05.json +19368 -0
- auroraomics/_contracts/public-api/golden-16-tiles.manifest.json +308 -0
- auroraomics/_contracts/public-api-counters.tokens.json +28 -0
- auroraomics/_contracts/public-api-input-kinds.tokens.json +71 -0
- auroraomics/_contracts/public-api.tokens.json +345 -0
- auroraomics/_contracts/qc-thresholds.tokens.json +10 -0
- auroraomics/contracts.py +155 -0
- auroraomics/h5ad.py +398 -0
- auroraomics/pack.py +667 -0
- auroraomics/py.typed +0 -0
- auroraomics/qc.py +288 -0
- auroraomics/subsample.py +140 -0
- auroraomics-0.1.0.dev0.dist-info/METADATA +134 -0
- auroraomics-0.1.0.dev0.dist-info/RECORD +19 -0
- auroraomics-0.1.0.dev0.dist-info/WHEEL +5 -0
- auroraomics-0.1.0.dev0.dist-info/licenses/LICENSE +131 -0
- auroraomics-0.1.0.dev0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Expected parse of golden-16-tiles.zip: the members with their sizes and digests, the tiles.csv rows, and the QC floors the tiles were cut at. A packer must reproduce these bytes; a validator must read exactly these names. Tiles are 120 px at 20x (0.499 um/px) from the CC0 OpenSlide test slide CMU-1-Small-Region.svs, and every one passes the PRODUCTION patch-QC floors in qc-thresholds.tokens.json, so a client packing at the defaults keeps all sixteen.",
|
|
3
|
+
"_visibility": "public",
|
|
4
|
+
"source": {
|
|
5
|
+
"file": "CMU-1-Small-Region.svs",
|
|
6
|
+
"url": "https://openslide.cs.cmu.edu/download/openslide-testdata/Aperio/CMU-1-Small-Region.svs",
|
|
7
|
+
"sha256": "ed92d5a9f2e86df67640d6f92ce3e231419ce127131697fbbce42ad5e002c8a7",
|
|
8
|
+
"license": "CC0-1.0",
|
|
9
|
+
"mpp": 0.499,
|
|
10
|
+
"magnification": 20
|
|
11
|
+
},
|
|
12
|
+
"qc": {
|
|
13
|
+
"foreground_ratio": 55,
|
|
14
|
+
"hsv_tissue_ratio": 30,
|
|
15
|
+
"blur_laplacian_var": 20
|
|
16
|
+
},
|
|
17
|
+
"tile": {
|
|
18
|
+
"width": 120,
|
|
19
|
+
"height": 120,
|
|
20
|
+
"count": 16
|
|
21
|
+
},
|
|
22
|
+
"members": [
|
|
23
|
+
{
|
|
24
|
+
"name": "tile_000000.png",
|
|
25
|
+
"bytes": 30071,
|
|
26
|
+
"sha256": "e540ce05980c98e428a105462d576c6e8c05fbcc47bdbc13b16807ff4c33bcfb"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "tile_000001.png",
|
|
30
|
+
"bytes": 29740,
|
|
31
|
+
"sha256": "66940909f04a0c363a2efa13563f6abb4121682dacf6e8f07fc76a2074a28a1c"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "tile_000002.png",
|
|
35
|
+
"bytes": 29736,
|
|
36
|
+
"sha256": "c63a83cb77de450396b6eec77a7e387445cd3cf39e98c4daf552e7a5227f9703"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "tile_000003.png",
|
|
40
|
+
"bytes": 28464,
|
|
41
|
+
"sha256": "36a880faf734de55252047d0c7a306d584036202a8fdd2372b44f2e165a37c79"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "tile_000004.png",
|
|
45
|
+
"bytes": 25372,
|
|
46
|
+
"sha256": "4fdcfc410702a118b74c41ccfbf058e94f4ae7ce1f33532ad7cbee07129e6f92"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "tile_000005.png",
|
|
50
|
+
"bytes": 30981,
|
|
51
|
+
"sha256": "9f7859018af7269368bfb5ec6d15b85edc5ead90e8b28bfe9be3cb4039f1b4ab"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "tile_000006.png",
|
|
55
|
+
"bytes": 33689,
|
|
56
|
+
"sha256": "fb6f460a340c56cc05f60b787dd9ed3a696ad7a57663a42f4f4227c0da8fceeb"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "tile_000007.png",
|
|
60
|
+
"bytes": 31705,
|
|
61
|
+
"sha256": "2ef8b8aaf5644b15706880122965ea3cb179d1fae56721d3a50a90cd5a604fe0"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "tile_000008.png",
|
|
65
|
+
"bytes": 34118,
|
|
66
|
+
"sha256": "686a3507f928a80afc52a540fb1ac962a2941717e964c7a719c3f8da3d74f018"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "tile_000009.png",
|
|
70
|
+
"bytes": 34021,
|
|
71
|
+
"sha256": "a82990819d675224b51e8957882b0c68f142f16ef7139ca0ebe93925ae6ad2d5"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "tile_000010.png",
|
|
75
|
+
"bytes": 33106,
|
|
76
|
+
"sha256": "57d09de621f89f8d6ae4d4e179fff345cd49664fc682950bd5ff0c575b4e534b"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "tile_000011.png",
|
|
80
|
+
"bytes": 34014,
|
|
81
|
+
"sha256": "bf546e06c7867e96497c61c8f4e0e79c0842a55d91601162d8f5352751555806"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "tile_000012.png",
|
|
85
|
+
"bytes": 34163,
|
|
86
|
+
"sha256": "0e8b2bdbedae3af074f2a3cdf7cf725cd5ad2f1e23e0699151be5bd191b1a36a"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "tile_000013.png",
|
|
90
|
+
"bytes": 33445,
|
|
91
|
+
"sha256": "97f48d2996a6c4ae282d38f52a43e957cbb0972833f8b3c92aacbef61bbc9dae"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "tile_000014.png",
|
|
95
|
+
"bytes": 30387,
|
|
96
|
+
"sha256": "c46bd4342d14f18141278d9d55df11e905a6ae1ef252a501b08f5d681e414922"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "tile_000015.png",
|
|
100
|
+
"bytes": 26950,
|
|
101
|
+
"sha256": "f18a11c2a006e891cad512fc4572bc08389174b47bf9dde699cf8217c47e9f67"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "tiles.csv",
|
|
105
|
+
"bytes": 1209,
|
|
106
|
+
"sha256": "75fc60fe3b3c1f6026a4f762946b624babc93e8aef30fefa9a34d94d26db273d"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "thumbnail.jpg",
|
|
110
|
+
"bytes": 99996,
|
|
111
|
+
"sha256": "423e9e0dbc792d81adb4cce14bb605969fd617a0e8ae1cdd2bb428fbcc320631"
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"tiles": [
|
|
115
|
+
{
|
|
116
|
+
"tile_id": "tile_000000",
|
|
117
|
+
"file": "tile_000000.png",
|
|
118
|
+
"x": 960,
|
|
119
|
+
"y": 120,
|
|
120
|
+
"width": 120,
|
|
121
|
+
"height": 120,
|
|
122
|
+
"mpp": 0.499,
|
|
123
|
+
"foreground_ratio": 71.38,
|
|
124
|
+
"hsv_ratio": 72.77,
|
|
125
|
+
"laplacian_var": 2057.7
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"tile_id": "tile_000001",
|
|
129
|
+
"file": "tile_000001.png",
|
|
130
|
+
"x": 1440,
|
|
131
|
+
"y": 480,
|
|
132
|
+
"width": 120,
|
|
133
|
+
"height": 120,
|
|
134
|
+
"mpp": 0.499,
|
|
135
|
+
"foreground_ratio": 68.74,
|
|
136
|
+
"hsv_ratio": 70.72,
|
|
137
|
+
"laplacian_var": 1287.4
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"tile_id": "tile_000002",
|
|
141
|
+
"file": "tile_000002.png",
|
|
142
|
+
"x": 1440,
|
|
143
|
+
"y": 720,
|
|
144
|
+
"width": 120,
|
|
145
|
+
"height": 120,
|
|
146
|
+
"mpp": 0.499,
|
|
147
|
+
"foreground_ratio": 97.02,
|
|
148
|
+
"hsv_ratio": 97.31,
|
|
149
|
+
"laplacian_var": 917.7
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"tile_id": "tile_000003",
|
|
153
|
+
"file": "tile_000003.png",
|
|
154
|
+
"x": 1200,
|
|
155
|
+
"y": 960,
|
|
156
|
+
"width": 120,
|
|
157
|
+
"height": 120,
|
|
158
|
+
"mpp": 0.499,
|
|
159
|
+
"foreground_ratio": 99.72,
|
|
160
|
+
"hsv_ratio": 99.83,
|
|
161
|
+
"laplacian_var": 590.1
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"tile_id": "tile_000004",
|
|
165
|
+
"file": "tile_000004.png",
|
|
166
|
+
"x": 840,
|
|
167
|
+
"y": 1200,
|
|
168
|
+
"width": 120,
|
|
169
|
+
"height": 120,
|
|
170
|
+
"mpp": 0.499,
|
|
171
|
+
"foreground_ratio": 55.98,
|
|
172
|
+
"hsv_ratio": 55.83,
|
|
173
|
+
"laplacian_var": 2519.2
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"tile_id": "tile_000005",
|
|
177
|
+
"file": "tile_000005.png",
|
|
178
|
+
"x": 1200,
|
|
179
|
+
"y": 1320,
|
|
180
|
+
"width": 120,
|
|
181
|
+
"height": 120,
|
|
182
|
+
"mpp": 0.499,
|
|
183
|
+
"foreground_ratio": 84.12,
|
|
184
|
+
"hsv_ratio": 84.81,
|
|
185
|
+
"laplacian_var": 2806.5
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"tile_id": "tile_000006",
|
|
189
|
+
"file": "tile_000006.png",
|
|
190
|
+
"x": 840,
|
|
191
|
+
"y": 1560,
|
|
192
|
+
"width": 120,
|
|
193
|
+
"height": 120,
|
|
194
|
+
"mpp": 0.499,
|
|
195
|
+
"foreground_ratio": 82.94,
|
|
196
|
+
"hsv_ratio": 80.68,
|
|
197
|
+
"laplacian_var": 4033.1
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"tile_id": "tile_000007",
|
|
201
|
+
"file": "tile_000007.png",
|
|
202
|
+
"x": 1320,
|
|
203
|
+
"y": 1680,
|
|
204
|
+
"width": 120,
|
|
205
|
+
"height": 120,
|
|
206
|
+
"mpp": 0.499,
|
|
207
|
+
"foreground_ratio": 62.2,
|
|
208
|
+
"hsv_ratio": 63.33,
|
|
209
|
+
"laplacian_var": 2711.8
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"tile_id": "tile_000008",
|
|
213
|
+
"file": "tile_000008.png",
|
|
214
|
+
"x": 960,
|
|
215
|
+
"y": 1920,
|
|
216
|
+
"width": 120,
|
|
217
|
+
"height": 120,
|
|
218
|
+
"mpp": 0.499,
|
|
219
|
+
"foreground_ratio": 77.76,
|
|
220
|
+
"hsv_ratio": 78.09,
|
|
221
|
+
"laplacian_var": 3250.5
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"tile_id": "tile_000009",
|
|
225
|
+
"file": "tile_000009.png",
|
|
226
|
+
"x": 960,
|
|
227
|
+
"y": 2040,
|
|
228
|
+
"width": 120,
|
|
229
|
+
"height": 120,
|
|
230
|
+
"mpp": 0.499,
|
|
231
|
+
"foreground_ratio": 80.57,
|
|
232
|
+
"hsv_ratio": 79.74,
|
|
233
|
+
"laplacian_var": 3706.5
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"tile_id": "tile_000010",
|
|
237
|
+
"file": "tile_000010.png",
|
|
238
|
+
"x": 960,
|
|
239
|
+
"y": 2160,
|
|
240
|
+
"width": 120,
|
|
241
|
+
"height": 120,
|
|
242
|
+
"mpp": 0.499,
|
|
243
|
+
"foreground_ratio": 76.64,
|
|
244
|
+
"hsv_ratio": 77.76,
|
|
245
|
+
"laplacian_var": 3069.6
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"tile_id": "tile_000011",
|
|
249
|
+
"file": "tile_000011.png",
|
|
250
|
+
"x": 960,
|
|
251
|
+
"y": 2280,
|
|
252
|
+
"width": 120,
|
|
253
|
+
"height": 120,
|
|
254
|
+
"mpp": 0.499,
|
|
255
|
+
"foreground_ratio": 82.59,
|
|
256
|
+
"hsv_ratio": 83.0,
|
|
257
|
+
"laplacian_var": 3031.3
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"tile_id": "tile_000012",
|
|
261
|
+
"file": "tile_000012.png",
|
|
262
|
+
"x": 960,
|
|
263
|
+
"y": 2400,
|
|
264
|
+
"width": 120,
|
|
265
|
+
"height": 120,
|
|
266
|
+
"mpp": 0.499,
|
|
267
|
+
"foreground_ratio": 79.36,
|
|
268
|
+
"hsv_ratio": 80.53,
|
|
269
|
+
"laplacian_var": 2962.6
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"tile_id": "tile_000013",
|
|
273
|
+
"file": "tile_000013.png",
|
|
274
|
+
"x": 840,
|
|
275
|
+
"y": 2520,
|
|
276
|
+
"width": 120,
|
|
277
|
+
"height": 120,
|
|
278
|
+
"mpp": 0.499,
|
|
279
|
+
"foreground_ratio": 86.99,
|
|
280
|
+
"hsv_ratio": 83.92,
|
|
281
|
+
"laplacian_var": 3045.0
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"tile_id": "tile_000014",
|
|
285
|
+
"file": "tile_000014.png",
|
|
286
|
+
"x": 600,
|
|
287
|
+
"y": 2640,
|
|
288
|
+
"width": 120,
|
|
289
|
+
"height": 120,
|
|
290
|
+
"mpp": 0.499,
|
|
291
|
+
"foreground_ratio": 96.29,
|
|
292
|
+
"hsv_ratio": 96.67,
|
|
293
|
+
"laplacian_var": 1360.0
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"tile_id": "tile_000015",
|
|
297
|
+
"file": "tile_000015.png",
|
|
298
|
+
"x": 480,
|
|
299
|
+
"y": 2760,
|
|
300
|
+
"width": 120,
|
|
301
|
+
"height": 120,
|
|
302
|
+
"mpp": 0.499,
|
|
303
|
+
"foreground_ratio": 66.78,
|
|
304
|
+
"hsv_ratio": 66.35,
|
|
305
|
+
"laplacian_var": 1569.4
|
|
306
|
+
}
|
|
307
|
+
]
|
|
308
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Quota counters and tiers — the SINGLE SOURCE OF TRUTH for the one counter abstraction (ADR 0009, Decision 2): every input kind charges a counter, every tier declares a limit per counter and window, usage is one table. The academic-tier numbers are the launch limits the ADR records; alertMultiplier is the per-key volume-alert threshold. Generated from PUBLIC_API_FIXTURES; regenerate with UPDATE_PUBLIC_API_FIXTURES=1.",
|
|
3
|
+
"_visibility": "public",
|
|
4
|
+
"counters": {
|
|
5
|
+
"tiles": {
|
|
6
|
+
"window": "day"
|
|
7
|
+
},
|
|
8
|
+
"rows": {
|
|
9
|
+
"window": "day"
|
|
10
|
+
},
|
|
11
|
+
"jobs": {
|
|
12
|
+
"window": "day"
|
|
13
|
+
},
|
|
14
|
+
"jobs_month": {
|
|
15
|
+
"window": "month"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"tiers": {
|
|
19
|
+
"academic": {
|
|
20
|
+
"tiles": 50000,
|
|
21
|
+
"rows": 200000,
|
|
22
|
+
"jobs": 5,
|
|
23
|
+
"jobs_month": 30
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"defaultTier": "academic",
|
|
27
|
+
"alertMultiplier": 3
|
|
28
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "The input-kinds registry — the SINGLE SOURCE OF TRUTH for what a public-API submission may carry: one observation kind (patches | embeddings) plus covariates, each with its container, quota cost unit, caps (derived in public-api.ts from RUN_PARAMETERS.maxPatches, never retyped), where its bounds come from, and how a result lands in the workspace (lands_as names the workspace modality registry). The registry-driven validator, the SDK packers and the docs Limits page read this. Generated from PUBLIC_API_FIXTURES; regenerate with UPDATE_PUBLIC_API_FIXTURES=1.",
|
|
3
|
+
"_visibility": "public",
|
|
4
|
+
"observationKinds": [
|
|
5
|
+
"patches",
|
|
6
|
+
"embeddings"
|
|
7
|
+
],
|
|
8
|
+
"covariateKinds": [
|
|
9
|
+
"bulk_rna",
|
|
10
|
+
"tissue",
|
|
11
|
+
"disease"
|
|
12
|
+
],
|
|
13
|
+
"kinds": {
|
|
14
|
+
"patches": {
|
|
15
|
+
"slot": "observations",
|
|
16
|
+
"container": "zip",
|
|
17
|
+
"cost_unit": "tiles",
|
|
18
|
+
"max_items": 50000,
|
|
19
|
+
"subsample_above": 10000,
|
|
20
|
+
"max_bytes": 2147483648,
|
|
21
|
+
"bounds_from": "card.input_spec",
|
|
22
|
+
"lands_as": {
|
|
23
|
+
"file_type": "scrna",
|
|
24
|
+
"display_modality": "virtual_st"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"embeddings": {
|
|
28
|
+
"slot": "observations",
|
|
29
|
+
"container": "npz",
|
|
30
|
+
"cost_unit": "rows",
|
|
31
|
+
"max_items": 50000,
|
|
32
|
+
"subsample_above": null,
|
|
33
|
+
"max_bytes": 268435456,
|
|
34
|
+
"bounds_from": "card.input_spec",
|
|
35
|
+
"lands_as": {
|
|
36
|
+
"file_type": "scrna",
|
|
37
|
+
"display_modality": "virtual_st"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"bulk_rna": {
|
|
41
|
+
"slot": "covariates",
|
|
42
|
+
"container": "table",
|
|
43
|
+
"cost_unit": null,
|
|
44
|
+
"max_items": null,
|
|
45
|
+
"subsample_above": null,
|
|
46
|
+
"max_bytes": 67108864,
|
|
47
|
+
"bounds_from": "card.output",
|
|
48
|
+
"lands_as": null
|
|
49
|
+
},
|
|
50
|
+
"tissue": {
|
|
51
|
+
"slot": "covariates",
|
|
52
|
+
"container": "enum",
|
|
53
|
+
"cost_unit": null,
|
|
54
|
+
"max_items": null,
|
|
55
|
+
"subsample_above": null,
|
|
56
|
+
"max_bytes": null,
|
|
57
|
+
"bounds_from": "tissues.vectors.json",
|
|
58
|
+
"lands_as": null
|
|
59
|
+
},
|
|
60
|
+
"disease": {
|
|
61
|
+
"slot": "covariates",
|
|
62
|
+
"container": "enum",
|
|
63
|
+
"cost_unit": null,
|
|
64
|
+
"max_items": null,
|
|
65
|
+
"subsample_above": null,
|
|
66
|
+
"max_bytes": null,
|
|
67
|
+
"bounds_from": "tissues.vectors.json",
|
|
68
|
+
"lands_as": null
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|