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

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

Uploaded Source

Built Distribution

shoulder-1.2-py3-none-any.whl (960.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shoulder-1.2.tar.gz
  • Upload date:
  • Size: 932.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/6.2.0-33-generic

File hashes

Hashes for shoulder-1.2.tar.gz
Algorithm Hash digest
SHA256 131172f5b24050eda77659120051f5d2117e67e5974336dd688c7f6c6cecc113
MD5 dd93486b283a8842c39b413851b7c6d8
BLAKE2b-256 0ce6f16d1ae6ed811403b52be4f276cd3aad46b5e3eb9bc2035926557b2be976

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shoulder-1.2-py3-none-any.whl
  • Upload date:
  • Size: 960.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/6.2.0-33-generic

File hashes

Hashes for shoulder-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d0f2374e94a79e35448698fbf1475e3ae398395f591cc32c83443e329910c8ef
MD5 52c90dd1286b07bfd8b449ce56f5755a
BLAKE2b-256 c70ff1603216ca1beb2c02357d736e8b3bf7d1fa0c5400701266cc2346a04efd

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