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.
@@ -0,0 +1,74 @@
1
+ """Virtual spatial transcriptomics from H&E histology.
2
+
3
+ The pieces of that pipeline that are pure Python live here, so the same code
4
+ runs on a laptop, inside a GPU image and on the hosted service:
5
+
6
+ * :mod:`auroraomics.qc` — the three patch-quality predicates and the cascade
7
+ that decides which tiles are worth predicting on.
8
+ * :mod:`auroraomics.pack` — build the ``patches`` archive a prediction takes
9
+ (:func:`pack_tiles`), and validate one before trusting it
10
+ (:func:`read_archive`).
11
+ * :mod:`auroraomics.h5ad` — write the standard result file with ``h5py``
12
+ alone, streaming the matrix so peak memory is one batch.
13
+ * :mod:`auroraomics.subsample` — choose the densest contiguous square when a
14
+ slide yields more tiles than a run may spend.
15
+ * :mod:`auroraomics.contracts` — the shared contract values, as data.
16
+
17
+ Nothing here reaches the network, and nothing here sends anything anywhere.
18
+ """
19
+
20
+ from __future__ import annotations
21
+
22
+ from importlib.metadata import PackageNotFoundError, version
23
+
24
+ from .h5ad import ResultError, write_result
25
+ from .pack import (
26
+ ArchiveError,
27
+ ArchiveRow,
28
+ PackError,
29
+ PackReport,
30
+ PatchArchive,
31
+ Rejection,
32
+ Tile,
33
+ pack_tiles,
34
+ read_archive,
35
+ )
36
+ from .qc import (
37
+ QcResult,
38
+ QcThresholds,
39
+ blur_filter,
40
+ foreground_mask,
41
+ hsv_filter,
42
+ qc_tile,
43
+ )
44
+ from .subsample import subsample_spatial_square
45
+
46
+ try:
47
+ # One source for the version: the installed distribution metadata, which
48
+ # the build fills in from the project file. A string spelled here as well
49
+ # would be the copy that goes stale.
50
+ __version__ = version("auroraomics")
51
+ except PackageNotFoundError: # pragma: no cover - running from a source tree
52
+ __version__ = "0+unknown"
53
+
54
+ __all__ = [
55
+ "ArchiveError",
56
+ "ArchiveRow",
57
+ "PackError",
58
+ "PackReport",
59
+ "PatchArchive",
60
+ "QcResult",
61
+ "QcThresholds",
62
+ "Rejection",
63
+ "ResultError",
64
+ "Tile",
65
+ "__version__",
66
+ "blur_filter",
67
+ "foreground_mask",
68
+ "hsv_filter",
69
+ "pack_tiles",
70
+ "qc_tile",
71
+ "read_archive",
72
+ "subsample_spatial_square",
73
+ "write_result",
74
+ ]
@@ -0,0 +1,11 @@
1
+ {
2
+ "_comment": "Contract documents vendored into this package, with the sha256 of each. Generated - do not edit by hand.",
3
+ "files": {
4
+ "genes/gene-table.2026-09-05.json": "0dbf97f69b37e4fdb1a13e5c05088c717f8f6cec7fb04c49a4987f8c6495a5c9",
5
+ "public-api-counters.tokens.json": "82544d49ca90897172ad5064daae45008175fc7152b8ead6411b49408df9979d",
6
+ "public-api-input-kinds.tokens.json": "654b45f740485ac6e77bd3fc8fd0e91b7453da38c445b37af460bda280351158",
7
+ "public-api.tokens.json": "a77e48b6aaed8ee4020fbfd99796dbfb6dd818ca6fb01c9e2102b4f4a07a3ce7",
8
+ "public-api/golden-16-tiles.manifest.json": "2d93fbfd2aa4542cc75d0c2dea34f199c6cf87f5123201f952b58de4b7d14094",
9
+ "qc-thresholds.tokens.json": "d65de3c306d75ab6588a3a13fedfe2e562c84e12921ebee08f810cd8b0b9ae47"
10
+ }
11
+ }