Skip to main content

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pycbcount-0.0.1-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page