Biobanking
Systematic collection, processing, storage, and analysis of biological samples and associated health records for medical research.
Supported pipelines
Preprocess
Contains biobank-specific modules for EHR data collection, cleaning, and processing.
QC (Under construction)
Will contain biobank-specific modules for variant quality control and filtering.
Annotation (Under construction)
Will contain biobank-specific modules for variant annotation.
Association
Contains biobank-specific modules for genotype-phenotype association tests.
Plotting
Contains forest plot helpers for burden and interaction association results.
Interaction forest plots can include marginal burden rows for the anchor and
target genes by passing the corresponding burden result files to
plot_interaction_forest(..., burden_data=[anchor_file, target_file]). These
rows appear as Burden :: <gene> before the interaction-model main effect,
interaction effect, and joint effect rows.
More plotting examples are in docs/plotting.md.
Supported biobanks
All of Us
The All of Us biobank consists of coupled whole genome sequencing and electronic health record data of more than 400k individuals, with continued expansion.
UK Biobank (Under construction)
The UK Biobank consists of coupled whole genome sequencing and electronic health record data of ~500k participants.
AoU REGENIE workflow
The All of Us association utilities currently support a packaged regenie workflow with four Step 2 categories:
- Burden association testing
- SKAT-O association testing
- Mask-only runs for writing burden-mask PLINK datasets
- Interaction testing using precomputed burden-mask PLINK datasets
The workflow implementation lives in src/biobanking/workflows/regenie.wdl, and the Python utilities live in src/biobanking/association/aou.py.
The Step 2 tracking model separates statistical test, variant-mask family, and concrete run identity:
step2_category:burden,skato,mask, orinteractionstep2_mode: the variant/mask family, such asplof,missense, orplof_missenserun_label: the concrete run, such asdefault,INHBE_vs_LDLR, orINHBE_vs_chr1
This keeps LOCO and prediction reuse aligned with the phenotype definition, lets pLoF and missense mask families share the same workflow machinery, and avoids encoding interaction labels into step2_mode.
Recommended usage pattern
- Run or reuse Step 1 once per phenotype prefix.
- Use burden runs for standard gene-based mask tests.
- Use SKAT-O runs when you want the REGENIE
--vc-tests skatogene-based test for the same mask family; these default to--vc-maxAAF 0.001unlessvc_max_aafis overridden. - Use mask runs to materialize chromosome-wide burden-mask PLINK files from a universal dummy phenotype stored at
data/associations/masks/<burden_type>/dummy.tsv.gz, without phenotype covariates. - Use interaction runs only after Step 1 exists for the phenotype prefix you are testing.
Burden input files are generated from annotation files at data/exome/annot/chr<chrom>_<burden_type>.tsv.gz. The default pLoF call uses built-in pLoF_strict and pLoF_lenient mask definitions; custom mask families can pass mask_definitions directly to create_regenie_burden_files(...).
More detailed usage examples are in docs/workflows.md.
Validate WDL
Before submitting workflows through Cromwell, validate the WDL locally with womtool. A simple setup is:
java -jar .\data\tools\womtool.jar validate .\src\biobanking\workflows\regenie.wdl
If womtool.jar is not present yet, place it under data/tools/ in the repository and rerun the validation command before submitting updated workflow code.
Internal use
python -m pip install -U pip build
pip install twine
# linux
rm -rf dist build *.egg-info src/*.egg-info
# windows
Remove-Item -Recurse -Force dist, *.egg-info, src\*.egg-info
python -m build
pip install dist/biobanking-0.0.20-py3-none-any.whl
java -jar .\data\tools\womtool.jar validate .\src\biobanking\workflows\regenie.wdl
python -c "from biobanking.association.aou import REGENIE; regenie = REGENIE(); from biobanking.preprocess.aou.measurements import save_measurements_in_wide_format; print('import ok')"
twine upload dist/*
Metadata
Release files for biobanking 0.0.20
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| biobanking-0.0.20.tar.gz | 305.5 kB | Without provenance | Details for biobanking-0.0.20.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| biobanking-0.0.20-py3-none-any.whl | Python 3 | none | any | Details for biobanking-0.0.20-py3-none-any.whl |
Total release size: 652.0 kB
Release files / biobanking-0.0.20.tar.gz
| Download URL | biobanking-0.0.20.tar.gz |
|---|---|
| Size | 305.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
729e8c2e19e5c471f40008850e472ad7ae8f08b9146054edfadb18f36fd73236
|
|
BLAKE2b-256 checksum How to use checksums |
96c476ad82a785acde3fa653de5044928de32e1f0213520470e2f87324c7860d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / biobanking-0.0.20-py3-none-any.whl
| Download URL | biobanking-0.0.20-py3-none-any.whl |
|---|---|
| Size | 346.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4e85f9154dbfc9d97759e86b66de5872ef43cde1ce1208870d182022ffd63726
|
|
BLAKE2b-256 checksum How to use checksums |
c91c15ef9eafae7295dbeb57dafc4e7fb360680d0d2c65488d4079c09fed3841
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Security for biobanking 0.0.20
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.