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

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

# 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.2.7.tar.gz (19.6 MB view details)

Uploaded Source

Built Distribution

shoulder-1.2.7-py3-none-any.whl (19.6 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shoulder-1.2.7.tar.gz
  • Upload date:
  • Size: 19.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.11.5 Linux/6.5.0-10-generic

File hashes

Hashes for shoulder-1.2.7.tar.gz
Algorithm Hash digest
SHA256 abb975e254dc1ac05532817b3ac4092cd11f68c76c0d1da4edcd5935b7e440d6
MD5 4b46a4d09e9758b6bcc155a9df37920d
BLAKE2b-256 7236548e78b5232a1f7d112a7b9b1f515dfb3e095eab9e619df8270d67fe53a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shoulder-1.2.7-py3-none-any.whl
  • Upload date:
  • Size: 19.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.11.5 Linux/6.5.0-10-generic

File hashes

Hashes for shoulder-1.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8dc5825fba8ca5b5104fd766cadc1f26215b39b85d4284effef953d664afdad0
MD5 0892dc1205241e4ca20ea6d9964870dc
BLAKE2b-256 04347bf715d12bdddc3299808e67abcec3db6e7b804f31f81db281e6da9bc580

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