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

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file pycbcount-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pycbcount-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for pycbcount-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a73fcfdf70cbab47c70b81fe254c92f6767f9df370b270d90d45fc6f68f3b243
MD5 d5559c2fd32d290ee179d74eadf625c5
BLAKE2b-256 9f72681462e865b69cd0a591ecb8e49b5b5f4e01827837540cae28c2e9069c35

See more details on using hashes here.

Supported by

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