A small example package
Project description
PyCBCount
PyCBCount is a Python package designed to calculate various metrics from Complete Blood Count (CBC) tests. This package provides functionalities to compute key hematological parameters such as Mean Corpuscular Volume (MCV), Mean Corpuscular Hemoglobin (MCH), and Neutrophil to Lymphocyte Ratio (NLR), among others. It also includes reference ranges for a comprehensive list of CBC metrics across different age groups.
Installation
To install pycbcount, run the following command:
pip install pycbcount
Usage
Here is how you can use the pycbcount package:
import pycbcount as cbc
from pycbcount import reference_range
# Calculate MCV
mcv_value = cbc.mcv(hct=0.45, rbc=5.2e6)
# Calculate MCH
mch_value = cbc.mch(hb=14, rbc=5.2e6)
# Adult reference range for MCV and MCH
reference_range["Adult"]["MCV"]
reference_range["Adult"]["MCH"]
# Adult age reference range for MCH and MCH
reference_range[18]["MCV"]
reference_range[18]["MCH"]
Features
- Calculation of MCV, MCH, MCHC, NLR, ANC, and ALC.
- Reference ranges for WBC, RBC, HGB, HCT, MCV, MCH, MCHC, RDW, PLT, Neutrophils, Lymphocytes, Monocytes, Eosinophils, and Basophils.
Formulas and References
- MCV Formula: Mean Corpuscular Volume (Wikipedia)
- MCH Formula: Mean Corpuscular Hemoglobin (Wikipedia)
- MCHC Formula: Mean Corpuscular Hemoglobin Concentration (Wikipedia)
- NLR Formula: Neutrophil to Lymphocyte Ration (Wikipedia)
- ANC Formula: Absolute Neutrophil Count (Wikipedia)
- ALC Formula: Complete Blood Count (Wikipedia)
- Reference Ranges: Complete Blood Count (Wikipedia)
Contributing
Contributions to pycbcount are highly appreciated, whether they come in the form of code improvements, bug reports, or documentation updates. This project, particularly, welcomes assistance from medical professionals or hematologists for verifying the medical accuracy of the calculations and reference data.
If you're a medical expert and notice any discrepancies or potential improvements in the medical content of this package, please feel free to correct them or suggest changes. This kind of contribution is invaluable to ensure that pycbcount provides reliable and accurate information.
License
This project is licensed under the MIT License - see the LICENSE file for details.
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 Distributions
Built Distribution
Hashes for pycbcount-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a73fcfdf70cbab47c70b81fe254c92f6767f9df370b270d90d45fc6f68f3b243 |
|
MD5 | d5559c2fd32d290ee179d74eadf625c5 |
|
BLAKE2b-256 | 9f72681462e865b69cd0a591ecb8e49b5b5f4e01827837540cae28c2e9069c35 |