Skip to main content

patient specific anatomic coordinate system generation for shoulder bones

Project description

shoulder

PyPI Latest Release Code style: black

This package uses a collection of machine learning models to detect anatomic landmarks on 3d models of shoulder bones and also generates patient specific coordinate systems. An stl of the shoulder bone of interest is all that is needed to get started. Currently only implemented for the humerus, with expansion to the scapula in the future. Landmarks that shoulder can currently identify on the humerus are:

  • canal
  • transepicondylar axis
  • bicipital groove
  • anatomic neck

Installation

pip install shoulder

Example

Start by using the example bone stl's located in "tests/test_bones"

# pass stl into Humerus
hum = shoulder.Humerus("tests/test_bones/humerus_left.stl")

# apply coordinate sysytem
hum.apply_csys_canal_transepiconylar()

# calculate landmarks
hum.canal.axis()
hum.trans_epiconylar.axis()
hum.anatomic_neck.points()
hum.bicipital_groove.axis()

# calculate metrics
hum.radius_curvature()
hum.neckshaft()
hum.retroversion()

# construct plot from above humeral bone with landmarks and coordinate system
plot = shoulder.Plot(hum)
plot.figure.show()

The output of the plot will appear as shown below with landmarks included and transformed from the original CT coordinate system to a coordainte system defined by the canal and transepicondylar axis.

Plot of Example code above

Contributing

Clone the repo, open the cloned folder containing the poetry.lock file, then install the development dependencies using poetry.

poetry install --with dev

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

shoulder-1.5.0.tar.gz (38.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shoulder-1.5.0-py3-none-any.whl (38.9 MB view details)

Uploaded Python 3

File details

Details for the file shoulder-1.5.0.tar.gz.

File metadata

  • Download URL: shoulder-1.5.0.tar.gz
  • Upload date:
  • Size: 38.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.7 Linux/6.11.0-21-generic

File hashes

Hashes for shoulder-1.5.0.tar.gz
Algorithm Hash digest
SHA256 297cdd54c7a2302823341e5fdc43357b6ca3ce7866729b5042de10abe5a3be38
MD5 3721f1eba566848af40915efaf5fd20e
BLAKE2b-256 2c80fe80cbe84c49eaa0e5e248e3eacedbc07188e63e48448d0b3a60d9d78cd8

See more details on using hashes here.

File details

Details for the file shoulder-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: shoulder-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 38.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.7 Linux/6.11.0-21-generic

File hashes

Hashes for shoulder-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c744fdbee410c8dfd2cc34a6232dce6af4935fdf811b021b8b6e17db38a876c
MD5 84a82ef92c3803b6f7fb39e3bb67d9a7
BLAKE2b-256 b86d8de336186c19416b8ca5f70af4ebc8d236bd5ff834a9fdccfb7ac92eafa4

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