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

Uploaded Source

Built Distribution

shoulder-1.0.4-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shoulder-1.0.4.tar.gz
  • Upload date:
  • Size: 20.9 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.4.tar.gz
Algorithm Hash digest
SHA256 19e9469d3c329aefbdf544219d38cf964439321fc51f77c18e3b3dd93014fdf8
MD5 4ff1c1ebc114c0a6c72ded8e765519f0
BLAKE2b-256 a31d35d5e98a9bc1c4456b2e7e2a4d0145f5caae69b8531da0b00fc5852dda69

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shoulder-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 24.6 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6e083b5c0ee24b2c95a5a522b534477c48621b82e70d488c17f772483b9d80e3
MD5 af104fd538333550f28d9ceac3d55e98
BLAKE2b-256 6bf1b6dc285b7dad2724aeb5744b1d377f41e648396ac27e789ff9948b545130

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