This package contains the reference value calculator for spirometry
Project description
Reference Value Calculator
This package contains the reference value calculator for spirometry. Install the packages from the requirements file in order for the calculator to work. The Excel files are used for computing the reference values.
Currently supported:
- NHANES III
- GLI-2012 (https://www.ers-education.org/lrMedia/2013/pdf/266709.pdf)
Parameters:
- sex: either 'male' or 'female'.
- height: the height of the person in centimeter.
- age: the age in years.
- race: different options for NHANES III and GLI-2012 (see below).
NHANES III
Race options for NHANES III: 'Cau', 'AfrAm', 'MexAm' (Causasian, African-American or Mexican-American).
GLI-2012
Either the general calculation function (calc_lung_param) or the specific calculation functions (analogue to the NHANES calculator) can be used. Use the function calc_lln_lung_param with the same parameters as calc_lung_param to compute the lower limit of normal (LNN or 5th percentile).
Possible lung parameters are: 'FEV1', 'FVC', 'FEV1FVC', 'FEF2575', 'FEF75'.
Race options for GLI-2012: 'Cau', 'AfrAm', 'NEAsia', 'SEAsia', 'other' (Caucasian, African-American, North-East Asia, South-East Asia, other).
Usage
For NHANES III:
import sys
sys.path.insert(0, 'NHANESIII')
from NHANESIII.nhanes3 import NHANESReferenceValueCalculator
# Load the calculator
rvc = NHANESReferenceValueCalculator()
# Use the calculator to compute FEV1 for a male of height 174cm, age 28 of the African-American race.
fev1 = rvc.calculate_fev1('male', 174, 28, race='AfrAm')
For GLI12:
import sys
sys.path.insert(0, 'GLI12')
from GLI12.gli12 import GLIReferenceValueCalculator
# Load the calculator
rvc = GLIReferenceValueCalculator()
# The general calculator function:
fev1 = rvc.cal_lung_param('FEV1', 'male', 174, 28, 'AfrAm') # African-American male, height 174 cm, age 28
# Same can be achieved with the specific FEV1 function:
fev1 = rvc.calculate_fev1('male', 174, 28, race='AfrAm')
# Computing the lower limit of normal (5th percentile)
fev1_lln = rvc.calc_lln_lung_param('FEV1', 'male', 174, 28, 'AfrAm')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
File details
Details for the file spiref-1.0.0.tar.gz.
File metadata
- Download URL: spiref-1.0.0.tar.gz
- Upload date:
- Size: 183.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
570eda15662ecab8635eb43c774a65217d57c90db08609fa167f8aeec0a1ae7d
|
|
| MD5 |
8f16c3130f4740db7776027c188e03a1
|
|
| BLAKE2b-256 |
4cbd4ad622d03fa2c31ec2ef92c0828381656d96894f25311e2cb65cbbd724b8
|
File details
Details for the file spiref-1.0.0-py3-none-any.whl.
File metadata
- Download URL: spiref-1.0.0-py3-none-any.whl
- Upload date:
- Size: 182.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1af935642358af49c5d3931d446dfd88c4287f8f955e777465be219199bf0f8e
|
|
| MD5 |
7cd895c09b8742586ba73579242c85e5
|
|
| BLAKE2b-256 |
205481eba735d134e2847941b7f151985a0863621eb55e3b6a170a2b801bda5d
|