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.1.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.1-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ukbeaver-0.3.1.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.1.tar.gz
Algorithm Hash digest
SHA256 1cdd0a6259d5d50bd09c224b27f3579d7afd2a39c5c8e47bd41c0d8d82647b0b
MD5 793bc3366f1fc7a65475224742d009ac
BLAKE2b-256 a847f44501997e8cdc3c9b71f046204afec906736d857f15d01340d1e832964e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ukbeaver-0.3.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 79869f4e79d1e3ca065929a7085069186474d0ad7fbeda45af3fedf5983ed914
MD5 1165704a0f9d539a6a1287fe34fc53d7
BLAKE2b-256 9a9553cfd1e72a79f4507639404b682097b9a75ab29405b266d4fbc0485aabdf

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