rbc-oxy 0.1.1__tar.gz

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.
Files changed (35) hide show
  1. rbc_oxy-0.1.1/LICENSE +21 -0
  2. rbc_oxy-0.1.1/PKG-INFO +137 -0
  3. rbc_oxy-0.1.1/README.md +97 -0
  4. rbc_oxy-0.1.1/pyproject.toml +78 -0
  5. rbc_oxy-0.1.1/setup.cfg +4 -0
  6. rbc_oxy-0.1.1/src/rbc_oxy/__init__.py +135 -0
  7. rbc_oxy-0.1.1/src/rbc_oxy/app/__init__.py +3 -0
  8. rbc_oxy-0.1.1/src/rbc_oxy/app/streamlit_app.py +446 -0
  9. rbc_oxy-0.1.1/src/rbc_oxy/capillary/__init__.py +21 -0
  10. rbc_oxy-0.1.1/src/rbc_oxy/capillary/kinetics.py +219 -0
  11. rbc_oxy-0.1.1/src/rbc_oxy/capillary/transit_time.py +132 -0
  12. rbc_oxy-0.1.1/src/rbc_oxy/constants.py +118 -0
  13. rbc_oxy-0.1.1/src/rbc_oxy/plotting/__init__.py +330 -0
  14. rbc_oxy-0.1.1/src/rbc_oxy/plotting/_common.py +439 -0
  15. rbc_oxy-0.1.1/src/rbc_oxy/plotting/mpl.py +363 -0
  16. rbc_oxy-0.1.1/src/rbc_oxy/plotting/plotly.py +312 -0
  17. rbc_oxy-0.1.1/src/rbc_oxy/saturation/__init__.py +41 -0
  18. rbc_oxy-0.1.1/src/rbc_oxy/saturation/dash.py +656 -0
  19. rbc_oxy-0.1.1/src/rbc_oxy/saturation/hill.py +261 -0
  20. rbc_oxy-0.1.1/src/rbc_oxy/saturation/solvers.py +249 -0
  21. rbc_oxy-0.1.1/src/rbc_oxy/transport/__init__.py +37 -0
  22. rbc_oxy-0.1.1/src/rbc_oxy/transport/capacity.py +486 -0
  23. rbc_oxy-0.1.1/src/rbc_oxy.egg-info/PKG-INFO +137 -0
  24. rbc_oxy-0.1.1/src/rbc_oxy.egg-info/SOURCES.txt +33 -0
  25. rbc_oxy-0.1.1/src/rbc_oxy.egg-info/dependency_links.txt +1 -0
  26. rbc_oxy-0.1.1/src/rbc_oxy.egg-info/requires.txt +18 -0
  27. rbc_oxy-0.1.1/src/rbc_oxy.egg-info/top_level.txt +1 -0
  28. rbc_oxy-0.1.1/tests/test_capillary.py +159 -0
  29. rbc_oxy-0.1.1/tests/test_constants.py +56 -0
  30. rbc_oxy-0.1.1/tests/test_dash.py +209 -0
  31. rbc_oxy-0.1.1/tests/test_hill.py +123 -0
  32. rbc_oxy-0.1.1/tests/test_plotting.py +242 -0
  33. rbc_oxy-0.1.1/tests/test_r_parity.py +267 -0
  34. rbc_oxy-0.1.1/tests/test_streamlit_app.py +71 -0
  35. rbc_oxy-0.1.1/tests/test_transport.py +159 -0
rbc_oxy-0.1.1/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Panagiotis N. Chatzinikolaou
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
rbc_oxy-0.1.1/PKG-INFO ADDED
@@ -0,0 +1,137 @@
1
+ Metadata-Version: 2.4
2
+ Name: rbc-oxy
3
+ Version: 0.1.1
4
+ Summary: Mathematical models and simulations of erythrocyte oxygen metabolism, hemoglobin-oxygen dissociation, oxygen transport capacity, and capillary transit.
5
+ Author: Panagiotis N. Chatzinikolaou
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/PanosChatzi/rbc-oxy
8
+ Project-URL: Repository, https://github.com/PanosChatzi/rbc-oxy
9
+ Project-URL: R Companion Package, https://github.com/PanosChatzi/erythrocyte-oxygen-metabolism
10
+ Keywords: erythrocyte,red-blood-cell,hemoglobin,oxygen-dissociation,hill-equation,dash-bassingthwaighte,physiology
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Science/Research
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.9
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Programming Language :: Python :: 3.14
20
+ Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
21
+ Classifier: Topic :: Scientific/Engineering :: Medical Science Apps.
22
+ Requires-Python: >=3.9
23
+ Description-Content-Type: text/markdown
24
+ License-File: LICENSE
25
+ Requires-Dist: numpy>=1.24
26
+ Requires-Dist: scipy>=1.10
27
+ Provides-Extra: plot
28
+ Requires-Dist: matplotlib>=3.7; extra == "plot"
29
+ Requires-Dist: plotly>=5.18; extra == "plot"
30
+ Provides-Extra: app
31
+ Requires-Dist: streamlit>=1.30; extra == "app"
32
+ Requires-Dist: plotly>=5.18; extra == "app"
33
+ Provides-Extra: dev
34
+ Requires-Dist: pytest>=8.0; extra == "dev"
35
+ Requires-Dist: ruff>=0.4; extra == "dev"
36
+ Requires-Dist: mypy>=1.8; extra == "dev"
37
+ Provides-Extra: all
38
+ Requires-Dist: rbc-oxy[app,dev,plot]; extra == "all"
39
+ Dynamic: license-file
40
+
41
+ # rbc-oxy
42
+
43
+ [![CI](https://github.com/PanosChatzi/rbc-oxy/actions/workflows/ci.yml/badge.svg)](https://github.com/PanosChatzi/rbc-oxy/actions/workflows/ci.yml)
44
+ [![PyPI](https://img.shields.io/pypi/v/rbc-oxy)](https://pypi.org/project/rbc-oxy/)
45
+ [![Streamlit App](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://rbc-oxygen-metabolism.streamlit.app/)
46
+ [![Release](https://img.shields.io/github/v/release/PanosChatzi/rbc-oxy)](https://github.com/PanosChatzi/rbc-oxy/releases)
47
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
48
+ [![Python 3.9+](https://img.shields.io/badge/python-3.9%2B-blue.svg)](https://www.python.org/downloads/)
49
+
50
+ Python package for modeling and simulating **erythrocyte oxygen metabolism**, hemoglobin-oxygen dissociation curves (ODC), blood oxygen transport capacity, and microvascular capillary offloading kinetics.
51
+
52
+ Companion Python implementation to the R package [`PanosChatzi/erythrocyte-oxygen-metabolism`](https://github.com/PanosChatzi/erythrocyte-oxygen-metabolism) (`rbcOxy`) and the review paper:
53
+
54
+ > Chatzinikolaou, P. N., Margaritelis, N. V., Paschalis, V., Theodorou, A. A., Vrabas, I. S., Kyparos, A., D'Alessandro, A., & Nikolaidis, M. G. (2024). *Erythrocyte metabolism*. **Acta Physiologica**, 240(3), e14081. https://doi.org/10.1111/apha.14081
55
+
56
+ ## Features
57
+
58
+ - **Hemoglobin-Oxygen Dissociation Models**
59
+ - **Hill equation**: `so2_hill`, `po2_hill`, `p50_hill`, `hill_coefficient` (supports constant or PO₂-dependent variable Hill exponent).
60
+ - **Dash, Korman & Bassingthwaighte (2016)** + Siggaard-Andersen (1971) $\text{pH}_{\text{rbc}}$: `rbc_ph`, `p50_dash`, `so2_dash`, `po2_dash`, `dash_oxygen_equilibrium` accounting for $\text{pH}$, $P_{\text{CO}_2}$, temperature, and $2,3\text{-BPG}$.
61
+ - **Blood Oxygen Transport & Capillary Kinetics**
62
+ - Dissolved vs. hemoglobin-bound oxygen (`blood_oxygen_content`, `blood_oxygen_content_dunn`, `blood_oxygen_content_dash`), arteriovenous difference, oxygen delivery ($\dot{D}\text{O}_2$), and extraction ratio (OER).
63
+ - Richardson (1993/1994) capillary transit time (`capillary_transit_time`) and ODE-based capillary $\text{O}_2$ offloading (`simulate_capillary_offloading`).
64
+ - **Dual-Backend Plotting (`matplotlib` + `plotly`)**
65
+ - `plot_odc`, `plot_odc_shift`, `plot_capillary_profile` with `backend="matplotlib"` (journal-ready static figures + 320 DPI SVG export) or `backend="plotly"` (interactive web charts).
66
+ - **Interactive Streamlit Explorer**
67
+ - Browser-based simulator (`src/rbc_oxy/app/streamlit_app.py`) with physiological presets, real-time Plotly charts, and one-click publication SVG export.
68
+ - **Validated Against R `rbcOxy`**
69
+ - Cross-validated against R 4.4.2 golden fixtures (`tests/fixtures/*.csv`, relative tolerance $\le 10^{-11}$).
70
+
71
+ ## Installation
72
+
73
+ ```bash
74
+ # Core numerical package (NumPy + SciPy)
75
+ pip install rbc-oxy
76
+
77
+ # With Matplotlib + Plotly visualization backends
78
+ pip install "rbc-oxy[plot]"
79
+
80
+ # With Streamlit interactive explorer
81
+ pip install "rbc-oxy[plot,app]"
82
+
83
+ # Editable development install
84
+ pip install -e ".[all]"
85
+ ```
86
+
87
+ ## Quickstart
88
+
89
+ ```python
90
+ import rbc_oxy as rbc
91
+ from rbc_oxy import PhysiologicalState, STANDARD_STATE
92
+
93
+ # 1. Dash & Bassingthwaighte (2016) equilibrium under exercise stress
94
+ exercise = PhysiologicalState(ph_plasma=7.22, pco2=48.0, temp_c=38.8, bpg_mm=4.95)
95
+ print(f"Rest P50: {rbc.p50_dash(state=STANDARD_STATE):.2f} mmHg")
96
+ print(f"Exercise P50: {rbc.p50_dash(state=exercise):.2f} mmHg")
97
+
98
+ # 2. Publication Matplotlib ODC shift figure (or switch backend="plotly")
99
+ fig, ax = rbc.plot_odc_shift(
100
+ baseline=STANDARD_STATE,
101
+ shifted=exercise,
102
+ backend="matplotlib",
103
+ baseline_label="Rest",
104
+ shifted_label="Exercise",
105
+ shifted_linestyle="dashed",
106
+ )
107
+ rbc.save_publication_figure(fig, "odc_shift.svg", dpi=320)
108
+
109
+ # 3. Blood oxygen content & capillary offloading
110
+ so2_art = rbc.so2_dash(100.0, state=STANDARD_STATE)
111
+ cao2 = rbc.blood_oxygen_content_dash(100.0, so2_art, state=STANDARD_STATE)
112
+ do2 = rbc.oxygen_delivery(cardiac_output_l_min=5.0, cao2_ml_dl=cao2)
113
+ profile = rbc.simulate_capillary_offloading(
114
+ po2_arterial=95.0, po2_tissue=20.0, transit_time_s=0.75
115
+ )
116
+ ```
117
+
118
+ See [notebooks/quickstart.ipynb](notebooks/quickstart.ipynb) for a complete runnable tutorial.
119
+
120
+ ## Interactive Explorer (Streamlit)
121
+
122
+ Try the live web app directly in your browser: **[rbc-oxygen-metabolism.streamlit.app](https://rbc-oxygen-metabolism.streamlit.app/)**
123
+
124
+ Or run it locally:
125
+
126
+ ```bash
127
+ streamlit run src/rbc_oxy/app/streamlit_app.py
128
+ ```
129
+
130
+ ## Development & Testing
131
+
132
+ ```bash
133
+ pytest -v
134
+ ruff check src tests
135
+ ```
136
+
137
+ See [PLAN.md](PLAN.md) for the full 5-phase engineering roadmap.
@@ -0,0 +1,97 @@
1
+ # rbc-oxy
2
+
3
+ [![CI](https://github.com/PanosChatzi/rbc-oxy/actions/workflows/ci.yml/badge.svg)](https://github.com/PanosChatzi/rbc-oxy/actions/workflows/ci.yml)
4
+ [![PyPI](https://img.shields.io/pypi/v/rbc-oxy)](https://pypi.org/project/rbc-oxy/)
5
+ [![Streamlit App](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://rbc-oxygen-metabolism.streamlit.app/)
6
+ [![Release](https://img.shields.io/github/v/release/PanosChatzi/rbc-oxy)](https://github.com/PanosChatzi/rbc-oxy/releases)
7
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
8
+ [![Python 3.9+](https://img.shields.io/badge/python-3.9%2B-blue.svg)](https://www.python.org/downloads/)
9
+
10
+ Python package for modeling and simulating **erythrocyte oxygen metabolism**, hemoglobin-oxygen dissociation curves (ODC), blood oxygen transport capacity, and microvascular capillary offloading kinetics.
11
+
12
+ Companion Python implementation to the R package [`PanosChatzi/erythrocyte-oxygen-metabolism`](https://github.com/PanosChatzi/erythrocyte-oxygen-metabolism) (`rbcOxy`) and the review paper:
13
+
14
+ > Chatzinikolaou, P. N., Margaritelis, N. V., Paschalis, V., Theodorou, A. A., Vrabas, I. S., Kyparos, A., D'Alessandro, A., & Nikolaidis, M. G. (2024). *Erythrocyte metabolism*. **Acta Physiologica**, 240(3), e14081. https://doi.org/10.1111/apha.14081
15
+
16
+ ## Features
17
+
18
+ - **Hemoglobin-Oxygen Dissociation Models**
19
+ - **Hill equation**: `so2_hill`, `po2_hill`, `p50_hill`, `hill_coefficient` (supports constant or PO₂-dependent variable Hill exponent).
20
+ - **Dash, Korman & Bassingthwaighte (2016)** + Siggaard-Andersen (1971) $\text{pH}_{\text{rbc}}$: `rbc_ph`, `p50_dash`, `so2_dash`, `po2_dash`, `dash_oxygen_equilibrium` accounting for $\text{pH}$, $P_{\text{CO}_2}$, temperature, and $2,3\text{-BPG}$.
21
+ - **Blood Oxygen Transport & Capillary Kinetics**
22
+ - Dissolved vs. hemoglobin-bound oxygen (`blood_oxygen_content`, `blood_oxygen_content_dunn`, `blood_oxygen_content_dash`), arteriovenous difference, oxygen delivery ($\dot{D}\text{O}_2$), and extraction ratio (OER).
23
+ - Richardson (1993/1994) capillary transit time (`capillary_transit_time`) and ODE-based capillary $\text{O}_2$ offloading (`simulate_capillary_offloading`).
24
+ - **Dual-Backend Plotting (`matplotlib` + `plotly`)**
25
+ - `plot_odc`, `plot_odc_shift`, `plot_capillary_profile` with `backend="matplotlib"` (journal-ready static figures + 320 DPI SVG export) or `backend="plotly"` (interactive web charts).
26
+ - **Interactive Streamlit Explorer**
27
+ - Browser-based simulator (`src/rbc_oxy/app/streamlit_app.py`) with physiological presets, real-time Plotly charts, and one-click publication SVG export.
28
+ - **Validated Against R `rbcOxy`**
29
+ - Cross-validated against R 4.4.2 golden fixtures (`tests/fixtures/*.csv`, relative tolerance $\le 10^{-11}$).
30
+
31
+ ## Installation
32
+
33
+ ```bash
34
+ # Core numerical package (NumPy + SciPy)
35
+ pip install rbc-oxy
36
+
37
+ # With Matplotlib + Plotly visualization backends
38
+ pip install "rbc-oxy[plot]"
39
+
40
+ # With Streamlit interactive explorer
41
+ pip install "rbc-oxy[plot,app]"
42
+
43
+ # Editable development install
44
+ pip install -e ".[all]"
45
+ ```
46
+
47
+ ## Quickstart
48
+
49
+ ```python
50
+ import rbc_oxy as rbc
51
+ from rbc_oxy import PhysiologicalState, STANDARD_STATE
52
+
53
+ # 1. Dash & Bassingthwaighte (2016) equilibrium under exercise stress
54
+ exercise = PhysiologicalState(ph_plasma=7.22, pco2=48.0, temp_c=38.8, bpg_mm=4.95)
55
+ print(f"Rest P50: {rbc.p50_dash(state=STANDARD_STATE):.2f} mmHg")
56
+ print(f"Exercise P50: {rbc.p50_dash(state=exercise):.2f} mmHg")
57
+
58
+ # 2. Publication Matplotlib ODC shift figure (or switch backend="plotly")
59
+ fig, ax = rbc.plot_odc_shift(
60
+ baseline=STANDARD_STATE,
61
+ shifted=exercise,
62
+ backend="matplotlib",
63
+ baseline_label="Rest",
64
+ shifted_label="Exercise",
65
+ shifted_linestyle="dashed",
66
+ )
67
+ rbc.save_publication_figure(fig, "odc_shift.svg", dpi=320)
68
+
69
+ # 3. Blood oxygen content & capillary offloading
70
+ so2_art = rbc.so2_dash(100.0, state=STANDARD_STATE)
71
+ cao2 = rbc.blood_oxygen_content_dash(100.0, so2_art, state=STANDARD_STATE)
72
+ do2 = rbc.oxygen_delivery(cardiac_output_l_min=5.0, cao2_ml_dl=cao2)
73
+ profile = rbc.simulate_capillary_offloading(
74
+ po2_arterial=95.0, po2_tissue=20.0, transit_time_s=0.75
75
+ )
76
+ ```
77
+
78
+ See [notebooks/quickstart.ipynb](notebooks/quickstart.ipynb) for a complete runnable tutorial.
79
+
80
+ ## Interactive Explorer (Streamlit)
81
+
82
+ Try the live web app directly in your browser: **[rbc-oxygen-metabolism.streamlit.app](https://rbc-oxygen-metabolism.streamlit.app/)**
83
+
84
+ Or run it locally:
85
+
86
+ ```bash
87
+ streamlit run src/rbc_oxy/app/streamlit_app.py
88
+ ```
89
+
90
+ ## Development & Testing
91
+
92
+ ```bash
93
+ pytest -v
94
+ ruff check src tests
95
+ ```
96
+
97
+ See [PLAN.md](PLAN.md) for the full 5-phase engineering roadmap.
@@ -0,0 +1,78 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "rbc-oxy"
7
+ version = "0.1.1"
8
+ description = "Mathematical models and simulations of erythrocyte oxygen metabolism, hemoglobin-oxygen dissociation, oxygen transport capacity, and capillary transit."
9
+ readme = "README.md"
10
+ license = "MIT"
11
+ license-files = ["LICENSE"]
12
+ requires-python = ">=3.9"
13
+ authors = [
14
+ { name = "Panagiotis N. Chatzinikolaou" },
15
+ ]
16
+ keywords = [
17
+ "erythrocyte",
18
+ "red-blood-cell",
19
+ "hemoglobin",
20
+ "oxygen-dissociation",
21
+ "hill-equation",
22
+ "dash-bassingthwaighte",
23
+ "physiology",
24
+ ]
25
+ classifiers = [
26
+ "Development Status :: 3 - Alpha",
27
+ "Intended Audience :: Science/Research",
28
+ "Programming Language :: Python :: 3",
29
+ "Programming Language :: Python :: 3.9",
30
+ "Programming Language :: Python :: 3.10",
31
+ "Programming Language :: Python :: 3.11",
32
+ "Programming Language :: Python :: 3.12",
33
+ "Programming Language :: Python :: 3.13",
34
+ "Programming Language :: Python :: 3.14",
35
+ "Topic :: Scientific/Engineering :: Bio-Informatics",
36
+ "Topic :: Scientific/Engineering :: Medical Science Apps.",
37
+ ]
38
+ dependencies = [
39
+ "numpy>=1.24",
40
+ "scipy>=1.10",
41
+ ]
42
+
43
+ [project.optional-dependencies]
44
+ plot = [
45
+ "matplotlib>=3.7",
46
+ "plotly>=5.18",
47
+ ]
48
+ app = [
49
+ "streamlit>=1.30",
50
+ "plotly>=5.18",
51
+ ]
52
+ dev = [
53
+ "pytest>=8.0",
54
+ "ruff>=0.4",
55
+ "mypy>=1.8",
56
+ ]
57
+ all = [
58
+ "rbc-oxy[plot,app,dev]",
59
+ ]
60
+
61
+ [project.urls]
62
+ Homepage = "https://github.com/PanosChatzi/rbc-oxy"
63
+ Repository = "https://github.com/PanosChatzi/rbc-oxy"
64
+ "R Companion Package" = "https://github.com/PanosChatzi/erythrocyte-oxygen-metabolism"
65
+
66
+ [tool.setuptools.packages.find]
67
+ where = ["src"]
68
+
69
+ [tool.pytest.ini_options]
70
+ testpaths = ["tests"]
71
+ addopts = "-v"
72
+
73
+ [tool.ruff]
74
+ target-version = "py39"
75
+ line-length = 88
76
+
77
+ [tool.ruff.lint]
78
+ select = ["E", "F", "I", "UP", "B", "SIM"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,135 @@
1
+ """rbc-oxy: Mathematical modeling of erythrocyte oxygen metabolism.
2
+
3
+ Provides vectorized implementations of published hemoglobin-oxygen dissociation
4
+ models (Hill, Dash & Bassingthwaighte), blood oxygen transport capacity,
5
+ capillary transit kinetics, and dual-backend plotting (Matplotlib & Plotly).
6
+ """
7
+
8
+ from __future__ import annotations
9
+
10
+ from rbc_oxy import capillary, constants, plotting, saturation, transport
11
+ from rbc_oxy.capillary import (
12
+ CapillaryProfileResult,
13
+ capillary_cross_sectional_area,
14
+ capillary_transit_time,
15
+ simulate_capillary_offloading,
16
+ transit_time_from_volume_flow,
17
+ )
18
+ from rbc_oxy.constants import (
19
+ DONNAN_RATIO_STD,
20
+ HUFNER_CONSTANT,
21
+ HUFNER_CONSTANT_THEORETICAL,
22
+ O2_SOLUBILITY_MOL,
23
+ O2_SOLUBILITY_PLASMA,
24
+ STANDARD_ARTERIAL_PO2,
25
+ STANDARD_BPG_MM,
26
+ STANDARD_HB_G_DL,
27
+ STANDARD_HCT,
28
+ STANDARD_HILL_N,
29
+ STANDARD_P50,
30
+ STANDARD_PCO2,
31
+ STANDARD_PH_PLASMA,
32
+ STANDARD_PH_RBC,
33
+ STANDARD_STATE,
34
+ STANDARD_TEMP_C,
35
+ STANDARD_VENOUS_PO2,
36
+ PhysiologicalState,
37
+ )
38
+ from rbc_oxy.plotting import (
39
+ ODCCurveData,
40
+ ODCShiftData,
41
+ plot_capillary_profile,
42
+ plot_odc,
43
+ plot_odc_shift,
44
+ save_publication_figure,
45
+ )
46
+ from rbc_oxy.saturation import (
47
+ DashEquilibriumResult,
48
+ co2_solubility_dash,
49
+ dash_oxygen_equilibrium,
50
+ free_co2_dash,
51
+ free_o2_dash,
52
+ hill_coefficient,
53
+ hill_n_dash,
54
+ o2_solubility_dash,
55
+ p50_dash,
56
+ p50_hill,
57
+ po2_dash,
58
+ po2_hill,
59
+ rbc_ph,
60
+ so2_dash,
61
+ so2_hill,
62
+ )
63
+ from rbc_oxy.transport import (
64
+ arteriovenous_difference,
65
+ blood_oxygen_content,
66
+ blood_oxygen_content_dash,
67
+ blood_oxygen_content_dunn,
68
+ bound_oxygen,
69
+ dissolved_oxygen,
70
+ oxygen_delivery,
71
+ oxygen_extraction_ratio,
72
+ )
73
+
74
+ __version__ = "0.1.1"
75
+
76
+ __all__ = [
77
+ "__version__",
78
+ "constants",
79
+ "saturation",
80
+ "transport",
81
+ "capillary",
82
+ "plotting",
83
+ "PhysiologicalState",
84
+ "STANDARD_STATE",
85
+ "STANDARD_P50",
86
+ "STANDARD_HILL_N",
87
+ "STANDARD_PH_PLASMA",
88
+ "STANDARD_PH_RBC",
89
+ "STANDARD_PCO2",
90
+ "STANDARD_TEMP_C",
91
+ "STANDARD_BPG_MM",
92
+ "DONNAN_RATIO_STD",
93
+ "HUFNER_CONSTANT",
94
+ "HUFNER_CONSTANT_THEORETICAL",
95
+ "O2_SOLUBILITY_PLASMA",
96
+ "O2_SOLUBILITY_MOL",
97
+ "STANDARD_HB_G_DL",
98
+ "STANDARD_HCT",
99
+ "STANDARD_ARTERIAL_PO2",
100
+ "STANDARD_VENOUS_PO2",
101
+ "so2_hill",
102
+ "po2_hill",
103
+ "p50_hill",
104
+ "hill_coefficient",
105
+ "DashEquilibriumResult",
106
+ "rbc_ph",
107
+ "hill_n_dash",
108
+ "o2_solubility_dash",
109
+ "co2_solubility_dash",
110
+ "free_o2_dash",
111
+ "free_co2_dash",
112
+ "p50_dash",
113
+ "dash_oxygen_equilibrium",
114
+ "so2_dash",
115
+ "po2_dash",
116
+ "dissolved_oxygen",
117
+ "bound_oxygen",
118
+ "blood_oxygen_content",
119
+ "blood_oxygen_content_dunn",
120
+ "blood_oxygen_content_dash",
121
+ "arteriovenous_difference",
122
+ "oxygen_delivery",
123
+ "oxygen_extraction_ratio",
124
+ "capillary_cross_sectional_area",
125
+ "capillary_transit_time",
126
+ "transit_time_from_volume_flow",
127
+ "CapillaryProfileResult",
128
+ "simulate_capillary_offloading",
129
+ "ODCCurveData",
130
+ "ODCShiftData",
131
+ "plot_odc",
132
+ "plot_odc_shift",
133
+ "plot_capillary_profile",
134
+ "save_publication_figure",
135
+ ]
@@ -0,0 +1,3 @@
1
+ """Interactive Streamlit web application for ``rbc-oxy``."""
2
+
3
+ from __future__ import annotations