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.0.tar.gz (7.7 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.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ukbeaver-0.3.0.tar.gz
  • Upload date:
  • Size: 7.7 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.0.tar.gz
Algorithm Hash digest
SHA256 7b876c6e81261bb9890de92625e617d37c6c3f1e649fa24b0018755149c14ecb
MD5 61278be307fbc2c8ed7ddc0d1d3c0e7e
BLAKE2b-256 762dda2c859cc3cc1871de5d7cc02de83beacca9d5916ef19c45153ba795edfc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ukbeaver-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 8.1 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4930fbf597283bb584e201ad621bcea68ada496c6a76e0b696c17be38f6a9d65
MD5 c705d7d692fbac4a0dba15aefb2f5398
BLAKE2b-256 3a270fe509093fadf08e38f5d3ea95e07368f2f5f6b871c6648da7b9ae69b2fa

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