UK Biobank Data Processing and Survival Analysis Toolkit
Overview
Provides an integrated workflow for UK Biobank Research Analysis Platform (RAP) hosted and RAP-generated analysis tables. The package supports RAP phenotype extraction planning, predefined variable sets and disease definitions, standardized baseline preprocessing, multi-source endpoint ascertainment, prevalent and incident case classification, survival-ready cohort construction, regression, multiple imputation, propensity score analysis, mediation analysis, subgroup and sensitivity analyses, machine learning, proteomics enrichment and protein-protein interaction analysis, and publication-oriented visualization. The package workflow is described in He et al. (2026) doi:10.64898/2026.06.19.26356057.
Official release
- Released UKBAnalytica 1.0.0 as an integrated RAP-oriented workflow package for UK Biobank epidemiological analyses.
- Expanded the package description to reflect the current end-to-end scope, including RAP extraction planning, predefined variables and diseases, cohort construction, statistical modeling, machine learning, proteomics analysis, and publication-oriented visualization.
Workflow coverage
- Consolidated predefined disease definitions and baseline variable mappings for rapid phenotype and covariate setup.
- Standardized the analysis flow from RAP data extraction and preprocessing to multi-source endpoint definition, prevalent/incident classification, survival-ready cohort generation, and downstream analyses.
- Added high-level machine-learning interfaces for single-model workflows and comparison across feature sets or algorithms, with ROC, threshold selection, calibration, SHAP interpretation, and validation-set evaluation helpers.
- Extended proteomics utilities for volcano plots, Gene Ontology enrichment, STRING-based PPI retrieval, topology metrics, fast-greedy community detection, and cluster-level enrichment analysis.
- Refined visualization helpers for forest plots, volcano plots, calibration and decision-curve analysis, ROC comparison, SHAP summaries, enrichment plots, and manuscript-ready figure export.
Recent updates
- Added
ukb_time_skeleton()to create a reusable follow-up time skeleton with baseline date, death date, loss-to-follow-up date, administrative censoring, follow-up end reason, and valid follow-up indicators. - Added optional
time_skeletonsupport tobuild_survival_dataset()while preserving the default survival workflow.
Show all changes in 1.0.0Hide the rest of the changes in 1.0.0
- Added RAP-protected dictionary utilities, including
ukb_download_rap_dictionary(),ukb_query_dictionary(), andukb_validate_columns(), for official RAP dictionary lookup, Chinese/English field search, and column validation. - Added the built-in
ukb_dictionary_zhmetadata dataset for Chinese UKB field-path lookup. - Extended
run_regression()withcovariate_setsfor nested epidemiological models such as crude, partially adjusted, and fully adjusted analyses. - Added lightweight publication-style plotting helpers for heatmaps, stacked bars, violin plots, and scatter plots.
- Excluded local
tests/from package builds and remote tracking.
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-08
- ERROR12 OK, 1 ERROR2026-09-07
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK7 OK2026-07-01
Documentation
- Help pages
- 244 (40 internal)includes a package overview page
- Examples that run
- 100%29 run in a plain check
- Exported functions with examples
- 15%
- Documented parameters
- 99%
- Return-value docs
- 100%
- Help pages citing references
- 2%
Downloads
Repository
- PRs merged (all time)
- not measured
- Median days to close, 50 most recently updated closed issues
- 1
- Median days to close, 50 most recently updated closed PRs
- not measured
Stars over time
Forks over time
Issues over time
Commits over time
5 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/hinna0818/ukbanalytica on 2026-10-21.
GitHub Pages site last deployed 2026-08-01 · The repository has a site deploy workflow
Dependencies
Installing UKBAnalytica adds 80 packages (45 with compiled code, 70 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
Datasets
People & History
- 1.0.0Latest2026-06-30 · current release
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-06-30
- Total releases
- 1 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.0
- Bundled data
- 136 KB / 1 file
- Download size
- 1.0 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("UKBAnalytica")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.