Skip to main content

Add your description here

Project description

ukbeaver 🦫

ukbeaver mascot

A lightweight toolkit for working with UK Biobank (UKB) tabular and imaging data

UK Biobank (UKB) provides one of the world’s largest biomedical datasets, containing extensive tabular information (phenotypes, biomarkers, questionnaires, etc.) and imaging data (MRI, retinal scans, X-rays, etc.). While rich in potential, accessing and organizing UKB data can be cumbersome due to its complex file structures, field IDs, and modality-specific formats.

ukbeaver is designed to streamline this process. It provides a convenient interface to:

  • 🗂 Access and organize tabular data — handle field IDs, instances, and arrays with ease.
  • 🖼 Work with imaging data — load and manage different modalities without manual overhead.
  • 🔎 Query efficiently — simplify the process of extracting subsets of data for analysis.
  • Integrate with existing workflows — built to be lightweight, flexible, and compatible with Python data science tools.

With ukbeaver, researchers can focus on analysis and discovery, instead of wrestling with data preprocessing.


🚀 Getting Started

Installation

pip install ukbeaver

Minimal Example

from ukbeaver.tabular import Phenotype

# init with a UKB-style tab-delimited file
ph = Phenotype("pheno_table.tsv")

# load everything
df, field_map = ph.get_df()

# select specific field IDs
df_50, _ = ph.get_df(fids=["50"])

# select only instance 0
df_i0, _ = ph.get_df(ins=0)

⚠️ Note: Access to UK Biobank data requires an approved UKB project application. ukbeaver does not bypass these restrictions; it only assists in handling datasets you are authorized to use.

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

ukbeaver-0.3.2.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

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

ukbeaver-0.3.2-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

Details for the file ukbeaver-0.3.2.tar.gz.

File metadata

  • Download URL: ukbeaver-0.3.2.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for ukbeaver-0.3.2.tar.gz
Algorithm Hash digest
SHA256 92a8a61acb536a61fc73abb80f3c10ee223d24e5199dffe1c2422ca382c1c853
MD5 4047c9e6026d032b02014ffe04d2c63b
BLAKE2b-256 e63289b1767b796f054be2b7bb39cafefc2dd7eb593274a2c8185620dfa45f25

See more details on using hashes here.

File details

Details for the file ukbeaver-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: ukbeaver-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 23.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for ukbeaver-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f446f0135d84057af1fb52c13f84028e66e620c9140f9bb4775d161c0324bbce
MD5 a681c5026c80ebef8f7d1b1f5cbfa081
BLAKE2b-256 1d0b64e1349d7e8b2a8c1a92a5acc8a4b385c8d290a579824d01a9782a01e883

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