Skip to main content

patient specific anatomic coordinate system generation for shoulder bones

Project description

shoulder

PyPI Latest Release License Code style: black

This package detects anatomic landmarks on stl files of shoulder bones and also generates patient specific coordinate systems. It is currently implemented for the humerus and will be extended to the glenoid in the future. Landmarks that shoulder can currently identify on the humerus are:

  • bicipital groove
  • canal
  • transepicondylar axis
  • anatomic neck

Installation

compatible with python 3.10 and 3.11

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")

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

# apply coordinate sysytem
hum.apply_csys_canal_transepiconylar()

# 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.0.7.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

shoulder-1.0.7-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shoulder-1.0.7.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.2 Linux/6.2.0-20-generic

File hashes

Hashes for shoulder-1.0.7.tar.gz
Algorithm Hash digest
SHA256 6b39ed526abd837786f3c8f90a90ede9aed16a0fe18e514f43331cdf66e05bec
MD5 06a822cc9b855f9522c66b71acc0dfce
BLAKE2b-256 7068181c841a530ca34ee5d0b9cbe41ba7a6ec12a5c266784c43b8b1eca3100b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shoulder-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 25.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.2 Linux/6.2.0-20-generic

File hashes

Hashes for shoulder-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8b003e9cecf83f59755a67a1e6778cff8b0e29de3e45a8628eec5f6c352df107
MD5 b514df86cf625446ab3a09c8e43930f7
BLAKE2b-256 ac7d0a8ec208c54d4d47402d8310099d41e271e7c7e2e5d0114e4af752c6c6a0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page