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

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.3.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

shoulder-1.0.3-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for shoulder-1.0.3.tar.gz
Algorithm Hash digest
SHA256 cd3029b4bcc28cb37fe8e618982d2ed0e52e07ee177f5fa0cb8ba43754a7fadd
MD5 307b92c75c1a8d8c3200148308ab7c15
BLAKE2b-256 bf86d33770797e6e7d5048174a0bfc825f5dca04efa6356daad7a396b63d1731

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for shoulder-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0384d8c26b7b2a4599a250ccedf5fa27291825ee214ae5048833e8709b40c305
MD5 a3a9586c8156e4492203285b0cf9278d
BLAKE2b-256 603714a98d050ab057be5b9d8bd220b55ed696fa8ae28e3bf30fe89e62fa7f9f

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