Generate meshes from UK Biobank data
Project description
UK Biobank atlas - mesh generation
Generate meshes using the UK Biobank atlas (https://www.cardiacatlas.org/biventricular-modes/)
Install
Install with pip
python3 -m pip install ukb-atlas
or (latest version)
python3 -m pip install git+https://github.com/ComputationalPhysiology/ukb-atlas
or similarly with pipx
pipx install ukb-atlas
or (latest version)
pipx install git+https://github.com/ComputationalPhysiology/ukb-atlas.git
Usage
$ ukb-atlas --help
usage: ukb-atlas [-h] [-a] [-m MODE] [-s STD] [--mesh] [--char_length_max CHAR_LENGTH_MAX] [--char_length_min CHAR_LENGTH_MIN] outdir
Generate surfaces and meshes from UK Biobank atlas.
positional arguments:
outdir Directory to save the generated surfaces and meshes.
options:
-h, --help show this help message and exit
-a, --all Download the PCA atlas derived from all 4,329 subjects from the UK Biobank Study.
-m MODE, --mode MODE Mode to generate points from. If -1, generate points from the mean shape. If between 0 and the number of modes, generate points from the
specified mode. By default -1
-s STD, --std STD Standard deviation to scale the mode by, by default 1.5
--mesh Create gmsh mesh files from the generated surfaces.
--char_length_max CHAR_LENGTH_MAX
Maximum characteristic length of the mesh elements.
--char_length_min CHAR_LENGTH_MIN
Minimum characteristic length of the mesh elements.
For example, by running the following command
ukb-atlas data --mesh
The tool will generate the following files
data
├── AV_ED.stl
├── AV_ES.stl
├── ED.msh
├── EPI_ED.stl
├── EPI_ES.stl
├── ES.msh
├── LV_ED.stl
├── LV_ES.stl
├── MV_ED.stl
├── MV_ES.stl
├── PV_ED.stl
├── PV_ES.stl
├── RVFW_ED.stl
├── RVFW_ES.stl
├── RV_ED.stl
├── RV_ES.stl
├── TV_ED.stl
├── TV_ES.stl
├── UKBRVLV.h5
└── parameters.json
Which are surfaces for both the end diastolic (ED) and the end systolic (ES) shapes, the PCA atlas (UKBRVLV.h5) and the parameters used to generate the surfaces.
Citing
If you use this tool to create meshes please cite
@software{Finsberg_fenics-beat_2024,
author = {Henrik Finsberg and Lisa R Pankewitz},
doi = {10.5281/zenodo.13927883},
title = {UK Biobank atlas - mesh generation},
url = {https://github.com/ComputationalPhysiology/ukb-atlas},
version = {0.1.0},
year = {2024}
}
The templates used to generate the meshes are described where developed as part of the following publication (so please cite this paper if you use the templates)
@article{PANKEWITZ2024103091,
title = {A universal biventricular coordinate system incorporating valve annuli: Validation in congenital heart disease},
journal = {Medical Image Analysis},
volume = {93},
pages = {103091},
year = {2024},
issn = {1361-8415},
doi = {https://doi.org/10.1016/j.media.2024.103091},
url = {https://www.sciencedirect.com/science/article/pii/S1361841524000161},
author = {Lisa R Pankewitz and Kristian G Hustad and Sachin Govil and James C Perry and Sanjeet Hegde and Renxiang Tang and Jeffrey H Omens and Alistair A Young and Andrew D McCulloch and Hermenegild J Arevalo},
keywords = {Cardiac geometry, Coordinates, Congenital Heart Disease, Mapping},
}
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ukb_atlas-0.1.1.tar.gz.
File metadata
- Download URL: ukb_atlas-0.1.1.tar.gz
- Upload date:
- Size: 72.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53b3d523df21771dcceb36a957cb07d0b1f390f2a18983c0a3c75db02b51dc70
|
|
| MD5 |
db5ee340a6ec1d470d635ddd50f55fec
|
|
| BLAKE2b-256 |
43fbd6f53b3e7db65e3802cd2a1ebeb8595180c093651984f9dd08bc03132fe9
|
Provenance
The following attestation bundles were made for ukb_atlas-0.1.1.tar.gz:
Publisher:
pypi.yml on ComputationalPhysiology/ukb-atlas
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ukb_atlas-0.1.1.tar.gz -
Subject digest:
53b3d523df21771dcceb36a957cb07d0b1f390f2a18983c0a3c75db02b51dc70 - Sigstore transparency entry: 169743300
- Sigstore integration time:
-
Permalink:
ComputationalPhysiology/ukb-atlas@ffc6272a10d13d3aa9551c9af63516ed1b6e1f3a -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/ComputationalPhysiology
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@ffc6272a10d13d3aa9551c9af63516ed1b6e1f3a -
Trigger Event:
push
-
Statement type:
File details
Details for the file ukb_atlas-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ukb_atlas-0.1.1-py3-none-any.whl
- Upload date:
- Size: 68.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8082d651a767d43207fb6189792bd807d90c4c6f4fcb9ac89e61f372cffd723b
|
|
| MD5 |
4311b2ac048bf529a0bae060aca71088
|
|
| BLAKE2b-256 |
d920805de016037658189e9c7c973bf174090d144d3f58152716089e7a10b30c
|
Provenance
The following attestation bundles were made for ukb_atlas-0.1.1-py3-none-any.whl:
Publisher:
pypi.yml on ComputationalPhysiology/ukb-atlas
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ukb_atlas-0.1.1-py3-none-any.whl -
Subject digest:
8082d651a767d43207fb6189792bd807d90c4c6f4fcb9ac89e61f372cffd723b - Sigstore transparency entry: 169743301
- Sigstore integration time:
-
Permalink:
ComputationalPhysiology/ukb-atlas@ffc6272a10d13d3aa9551c9af63516ed1b6e1f3a -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/ComputationalPhysiology
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@ffc6272a10d13d3aa9551c9af63516ed1b6e1f3a -
Trigger Event:
push
-
Statement type: