pyspiro
Project description
pyspiro
The Package pyspiro implements multiple spirometric, bodyplethysmographic and oscillometric lung function reference equations.
Currently Available Models/Equations
- Standard and race-neutral Spirometry reference equations (GLI, LuftiBus): (Quanjer 2012, PMID: 22743675; Kuster 2008, PMID: 18057057, Bowerman 2023, PMID: 36383197)
- Lung Diffusion reference equations (GLI): (Stanojevic 2017, PMID: 28893868)
- Lung Diffusion reference equations (SCAPIS): (Malinovschi 2023, PMID: 37339507)
- Static lung volumes reference equations (GLI): (Hall 2021, PMID: 33707167)
- Oscillometric reference equations (KORA): (Schulz 2013, PMID: 23691036)
Planned future implementations
- ECCS-1993 reference values (Laszlo 1993) (Version 1)
- Breath-washout reference values (version 2).
Brief application example (2012 GLI reference equations)
import pandas as pd
from pyspiro import GLI_2012
gli = GLI_2012()
# Suppose df is a pandas DataFrame object.
# sex_binary: 0 = female, 1 = male
# fev1 in liters, age in years, height in cm.
# Suppose patient ethinicity = Caucasian for all patients in dataset (here: "1")
df[['fev1_p', 'fev1_z', 'fev1_lln']] = df.apply(
lambda x: pd.Series(
gli.all(
x.sex_binary,
x.age,
x.height,
1, # Ethnicity
gli.Parameters["FEV1"],
x.fev1
)
),
axis=1
)
If using, please cite as:
Hendrik Pott, Roman Martin. pySpiro: v.0.3.3. Published online Jun 10, 2025. doi:10.5281/zenodo.15519193
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyspiro-0.4.0.tar.gz
(331.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pyspiro-0.4.0-py3-none-any.whl
(336.1 kB
view details)
File details
Details for the file pyspiro-0.4.0.tar.gz.
File metadata
- Download URL: pyspiro-0.4.0.tar.gz
- Upload date:
- Size: 331.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e08ffd619163432c7e42528282730e4e3a7872c13c401a54c57821f5e571b13
|
|
| MD5 |
69c062a481cc8657284359d613983fc9
|
|
| BLAKE2b-256 |
83f405276eb42804edbd9bee9eae63fb5dafff110e038dbe7842de5fd2978775
|
File details
Details for the file pyspiro-0.4.0-py3-none-any.whl.
File metadata
- Download URL: pyspiro-0.4.0-py3-none-any.whl
- Upload date:
- Size: 336.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8464483534857122fceefd8ec2f56d835150c40f91dccc54f6b29336d7c75a37
|
|
| MD5 |
ab7752e632f519e78a4846b6b12df2ed
|
|
| BLAKE2b-256 |
79b86e67fd0e8fa64c8ee65555c0236e2fd71ed7ba610d2011710cd361abc693
|