ukb-atlas

Generate meshes from UK Biobank atlas

https://github.com/computationalphysiology/ukb-atlas

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 5 DOI reference(s) in README
  • Academic publication links
    Links to: sciencedirect.com, zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.5%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

Generate meshes from UK Biobank atlas

Basic Info
Statistics
  • Stars: 5
  • Watchers: 3
  • Forks: 1
  • Open Issues: 3
  • Releases: 4
Created almost 2 years ago · Last pushed 11 months ago
Metadata Files
Readme Contributing License Citation

README.md

DOI

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

Quick start

To generate surfaces from the UK Biobank atlas, run the following command $ ukb-atlas surf data --mode -1 --std 1.5 --case ED INFO:ukb.atlas:Generating points from /root/.ukb/UKBRVLV.h5 using mode -1 and std 1.5 INFO:ukb.surface:Saved data/EPI_ED.stl INFO:ukb.surface:Saved data/MV_ED.stl INFO:ukb.surface:Saved data/AV_ED.stl INFO:ukb.surface:Saved data/TV_ED.stl INFO:ukb.surface:Saved data/PV_ED.stl INFO:ukb.surface:Saved data/LV_ED.stl INFO:ukb.surface:Saved data/RV_ED.stl INFO:ukb.surface:Saved data/RVFW_ED.stl Now we can generate a mesh from these surfaces $ ukb-atlas mesh data INFO:ukb.mesh:Creating mesh for ED with char_length_max=5.0, char_length_min=5.0 INFO:ukb.mesh:Created mesh data/ED.msh _

Now we can also create a mesh without the outflow tracts using the cilp command $ ukb-atlas clip data ukb-atlas clip data INFO:ukb.clip:Folder: data INFO:ukb.clip:Case: ED INFO:ukb.clip:Origin: [-13.612554383622273, 18.55767189380559, 15.135103714006394] INFO:ukb.clip:Normal: [-0.7160843664428893, 0.544394641424108, 0.4368725838557541] INFO:ukb.clip:Reading data/LV_ED.stl Warning: PLY writer doesn't support multidimensional point data yet. Skipping Normals. Warning: PLY doesn't support 64-bit integers. Casting down to 32-bit. INFO:ukb.clip:Saved data/lv_clipped.ply INFO:ukb.clip:Reading data/RV_ED.stl INFO:ukb.clip:Reading data/RVFW_ED.stl INFO:ukb.clip:Merging RV and RVFW INFO:ukb.clip:Saving data/rv_clipped.ply Warning: PLY writer doesn't support multidimensional point data yet. Skipping Normals. Warning: PLY doesn't support 64-bit integers. Casting down to 32-bit. INFO:ukb.clip:Reading data/EPI_ED.stl INFO:ukb.clip:Saving data/epi_clipped.ply Warning: PLY writer doesn't support multidimensional point data yet. Skipping Normals. Warning: PLY doesn't support 64-bit integers. Casting down to 32-bit. and then create a mesh from the clipped surfaces $ ukb-atlas mesh data --clipped INFO:ukb.mesh:Creating clipped mesh for ED with char_length_max=5.0, char_length_min=5.0 INFO:ukb.mesh:Created mesh data/ED_clipped.msh

_

Usage

There are three main commands: 1. surf - Extract surfaces from the atlas and save them in the specified directory as STL files 2. clip - Clip the surfaces to remove e.g the outflow tracts 3. mesh - Generate mesh from the surfaces ``` usage: ukb-atlas [-h] {surf,clip,mesh} ...

UKB-atlas This is a command line interface for extracting surfaces and generating Bi-ventricular meshes from the UK Biobank atlas: https://www.cardiacatlas.org/biventricular-modes/

positional arguments: {surf,clip,mesh} surf Extract surfaces from the atlas clip Clip the surfaces mesh Generate mesh from the surfaces

options: -h, --help show this help message and exit ```

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

Owner

  • Name: Computational Physiology at Simula Research Laboratory
  • Login: ComputationalPhysiology
  • Kind: organization
  • Location: Fornebu, Norway

GitHub organization for the computational physiology department at Simula Research Laboratory

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Finsberg"
  given-names: "Henrik"
  orcid: "https://orcid.org/0000-0003-3766-2393"
- family-names: "Pankewitz"
  given-names: "Lisa R"
title: "UK Biobank atlas - mesh generation"
version: "0.1.0"
date-released: 2024-10-14
url: "https://github.com/ComputationalPhysiology/ukb-atlas"

GitHub Events

Total
  • Create event: 5
  • Issues event: 2
  • Release event: 2
  • Watch event: 4
  • Push event: 14
  • Pull request event: 6
  • Fork event: 1
Last Year
  • Create event: 5
  • Issues event: 2
  • Release event: 2
  • Watch event: 4
  • Push event: 14
  • Pull request event: 6
  • Fork event: 1

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 2
  • Total pull requests: 2
  • Average time to close issues: N/A
  • Average time to close pull requests: 29 minutes
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 2
  • Pull requests: 2
  • Average time to close issues: N/A
  • Average time to close pull requests: 29 minutes
  • Issue authors: 1
  • Pull request authors: 1
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • finsberg (2)
Pull Request Authors
  • finsberg (4)
  • dependabot[bot] (2)
Top Labels
Issue Labels
Pull Request Labels
dependencies (2) github_actions (2)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 268 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 5
  • Total maintainers: 1
pypi.org: ukb-atlas

Generate meshes from UK Biobank data

  • Documentation: https://ukb-atlas.readthedocs.io/
  • License: MIT License Copyright (c) 2024 Computational Physiology at Simula Research Laboratory Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  • Latest release: 1.0.1
    published about 1 year ago
  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 268 Last month
Rankings
Dependent packages count: 10.2%
Average: 33.8%
Dependent repos count: 57.4%
Maintainers (1)
Last synced: 11 months ago

Dependencies

.github/workflows/build_docs.yml actions
  • actions/checkout v4 composite
  • actions/upload-pages-artifact v3 composite
.github/workflows/deploy_docs.yml actions
  • actions/checkout v4 composite
  • actions/configure-pages v5 composite
  • actions/deploy-pages v4 composite
.github/workflows/main.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
  • actions/upload-artifact v4 composite
.github/workflows/pypi.yml actions
  • actions/checkout v4 composite
  • actions/download-artifact v4 composite
  • actions/upload-artifact v4 composite
  • pypa/gh-action-pypi-publish release/v1 composite
pyproject.toml pypi
  • h5py *
  • meshio *
  • numpy *