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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: shoulder-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 9e2a5e4d79870d1288bcc6eec8c79284ae114c5b2fbac167d3898ef817ab7711
MD5 9a156f36973e1b824c0ecc9bdd1cc425
BLAKE2b-256 8a87905bcba5bb1ca8f5b54f6cbdb60835df1353e1f9fc80fba9579b46015b53

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shoulder-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e0812da6a9ea3dde764a5df83fca5006459f6816c28259137cf2226bc8af4f03
MD5 03be6192541135be4f704f3cc5a83411
BLAKE2b-256 2998e102386f7c713bc1658a5378b795d4a3d5154cb63028cfa97695c06663d8

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