Skip to main content

SDS and Centile calculations for UK Growth Data

Project description

RCPCHGrowth Python library

Calculations for children's measurements against UK and international growth references.

PyPI version License: AGPL v3 Binder Codespaces

For AI/LLM agents working on this repository: Please read AGENTS.md for project context, development workflow, and testing strategy.

Please go to https://growth.rcpch.ac.uk/products/python-library/ for full documentation.

Issues can be raised here https://github.com/rcpch/rcpchgrowth-python/issues


Installation

Docker

If you want to avoid setting up docker environments, there are shortcut scripts the create a dockerized environment with RCPCHGrowth already installed.

This will generate a container which will launch some Jupyter notebooks in a browser and allow local dev (with hot reload).

Convenience Scripts

The s/ folder contains helper scripts for common development tasks:

Script Purpose
s/up Start the development container
s/down Stop the development container
s/test Run pytest (auto-starts container if needed; use --running flag for already-running container)
s/notebook Launch JupyterLab in your browser
s/shell Open an interactive bash shell in the container
s/python Launch Python REPL in the container

Quick start:

# Start the container and launch notebooks
s/notebook

# Run tests (in a separate terminal)
s/test

# Or run tests in an already-running container
s/test --running

# Run the UK-WHO integration suite
s/test rcpchgrowth/tests/test_uk_who.py -v

# Reference WHO test datasets and under-2 gold-standard rationale
# (192 deterministic anthro-generated cases)
# See rcpchgrowth/tests/who_test_data/README.md

# Stop when done
s/down

Minimal installation (without docker) assuming you have a python virtual env setup

pip install rcpchgrowth

With notebook & package dependencies:

pip install "rcpchgrowth[notebook]"

The notebook extra currently pulls in: pandas, matplotlib, jupyterlab, ipykernel.

Data handling / privacy

Data handling & privacy
Never commit identifiable patient data.
• Keep raw identifiable data outside version control (secure, access‑controlled).
• De‑identify before analysis (remove names, NHS numbers, full DOB; date‑shift if required).
• Do not push raw exports to forks, PRs or gists.
• Use ResearchTemplate.ipynb for generating de‑identified derived outputs.
If in doubt, stop and seek local information governance guidance.

Contributing

See issues list and please open discussions before large changes.


Copyright © Royal College of Paediatrics and Child Health

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

rcpchgrowth-4.5.0.tar.gz (4.1 MB view details)

Uploaded Source

Built Distribution

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

rcpchgrowth-4.5.0-py3-none-any.whl (4.2 MB view details)

Uploaded Python 3

File details

Details for the file rcpchgrowth-4.5.0.tar.gz.

File metadata

  • Download URL: rcpchgrowth-4.5.0.tar.gz
  • Upload date:
  • Size: 4.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for rcpchgrowth-4.5.0.tar.gz
Algorithm Hash digest
SHA256 40b683dfdd7595ab2842438d41f2b565cca60242f1276ba612782e3ec91ac6eb
MD5 64d26f4d0deca9ee2d56739c85baadf4
BLAKE2b-256 368d0f0dae3d4e5caed53bf63cab6f1eb1983148f850bfe4c2d3aa7c624c5d32

See more details on using hashes here.

File details

Details for the file rcpchgrowth-4.5.0-py3-none-any.whl.

File metadata

  • Download URL: rcpchgrowth-4.5.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for rcpchgrowth-4.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 26ee3212312213055066a2e88f8ecac5dc53716f31ab38307375f0f7b8571da1
MD5 7296d1352a5969bf1a2dbebff1656994
BLAKE2b-256 6182f85b07c1df7eeaf96234eeefa29290aebb9ea7637c3f2d92af15b1aa9f75

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