echoviz-MALOU


Nameechoviz-MALOU JSON
Version 0.2.3 PyPI version JSON
download
home_pagehttps://github.com/mailys-hau/echoviz
SummaryVisualisation of 3D mitral valve
upload_time2023-09-22 17:41:56
maintainer
docs_urlNone
authorMaïlys HAU
requires_python>=3.7
license
keywords visualisation plotly 3d mitral valve
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">
<h1>EchoViz</h1>

[![Stable](https://img.shields.io/badge/docs-soon-blue.svg)](https://blank.page/)
[![PyPI Latest Release](https://img.shields.io/pypi/v/echoviz-MALOU.svg)](https://pypi.org/project/echoviz-MALOU/)
[![Python Version](https://img.shields.io/badge/python-3.9+-blue.svg?logo=python.svg)](https://www.python.org/)
[![Plotly Version](https://img.shields.io/badge/plotly-v5.15.0-blue.svg?logo=plotly.svg)](https://plotly.com/python/)
[![License: GPL v3](https://img.shields.io/badge/license-GPLv3-blue.svg)](https://github.com/mailys-hau/echoviz/blob/main/LICENSE)

[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)
[![PEP8](https://img.shields.io/badge/code%20style-pep8-orange.svg)](https://www.python.org/dev/peps/pep-0008/)

</div>

Visualization of (3D) echocardiograms in various ways using `plotly`. This does not include pre-processing of the data from DICOMs to the voxel grid.


## Installation

Run `$ pip install echoviz-malou`. This will automatically install needed dependencies.

## Features (= Documentation attempt)

`echoviz` allows you to view 3D voxel grids in different ways:
- 2D slice of the grid
  - `plot_slice`       2D slice of a voxel grid along chosen axis and slice, saved as PNG
  - `sliced_sequence`  2D slice of several voxel grids along the same chosen axis and slice, saved as GIF
  - `sliced_volume`    2D slices of one voxel grid along chosen axis for all slices (you can specify a stride), saved as GIF
- 3D (interactive plot or "static", i.e. screenshot of the interactive view)
  - `interactive_3d`  3D view of a voxel grid that the user can rotate and zoom in, saved as HTML
  - `static_3d`       Screenshot of above function output
- 4D for a sequence of voxel grids
  - `animated_3d`  3D view of several voxel grids that the user can rotate and zoom in, saved as HTML
It is possible to add a target and/or a prediction on top of the input plot. In 2D they will be plotted side by side, in 3D they'll be plotted on top of each other.

In 3D it is also possible to plot the Signed Distance Function as a heatmap between the target and the prediction (negative when the prediction is inside the target). "ASD" is also available, it's the absolute value of the SDF.
- `sdf_[interactive|static|animated]_3d`
- `asd_[interactive|static|animated]_3d`

All functions expect to receive inputs as `VoxelGrid` or a list of `VoxelGrid`. Annotations/labels and predictions are **dictionaries** containing a `VoxelGrid` or list of `VoxelGrid` per key (keys are used to get the plot colour, chose between "all", "anterior" or "posterior".

## Examples

See `tests/test.py` and `tests/test.ipynb`.

 NB: Some additional packages are needed to run the test scripts,
 - For `tests/test.py`, run `$ pip install h5py click`
 - For `tests/test.ipynb` run `$ pip install jupyterlab ipywidgets jupyter-dash`

## Troubleshooting

### Kaleido permission denied
You may need to make Kaleido executable files as executable manually: `chmod +x ~/<venv_name>/lib/python3.9/site-packages/kaleido-<version_number>.egg/kaleido/executable/kaleido ~/<venv_name>/lib/python3.9/site-packages/kaleido-<version_number>.egg/kaleido/executable/bin/kaleido`
For more detail see [here](https://stackoverflow.com/questions/43329028/ioerror-errno-13-permission-denied-when-trying-to-import-and-use-plotly)

### Other
Please report any issues via the GitHub [issues tracker](https://github.com/mailys-hau/echoviz/issues).

<br>

This package was built to plot TEE images and has not been tested on anything else, if you want to participate, you are more than welcome!

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/mailys-hau/echoviz",
    "name": "echoviz-MALOU",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "visualisation,plotly,3D,mitral valve",
    "author": "Ma\u00eflys HAU",
    "author_email": "Ma\u00eflys Hau <27966914+mailys-hau@users.noreply.github.com>",
    "download_url": "https://files.pythonhosted.org/packages/8b/5d/99903c6438dad09e788571021a99cae20e0037bd8b85262e28924629bb02/echoviz-MALOU-0.2.3.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\n<h1>EchoViz</h1>\n\n[![Stable](https://img.shields.io/badge/docs-soon-blue.svg)](https://blank.page/)\n[![PyPI Latest Release](https://img.shields.io/pypi/v/echoviz-MALOU.svg)](https://pypi.org/project/echoviz-MALOU/)\n[![Python Version](https://img.shields.io/badge/python-3.9+-blue.svg?logo=python.svg)](https://www.python.org/)\n[![Plotly Version](https://img.shields.io/badge/plotly-v5.15.0-blue.svg?logo=plotly.svg)](https://plotly.com/python/)\n[![License: GPL v3](https://img.shields.io/badge/license-GPLv3-blue.svg)](https://github.com/mailys-hau/echoviz/blob/main/LICENSE)\n\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)\n[![PEP8](https://img.shields.io/badge/code%20style-pep8-orange.svg)](https://www.python.org/dev/peps/pep-0008/)\n\n</div>\n\nVisualization of (3D) echocardiograms in various ways using `plotly`. This does not include pre-processing of the data from DICOMs to the voxel grid.\n\n\n## Installation\n\nRun `$ pip install echoviz-malou`. This will automatically install needed dependencies.\n\n## Features (= Documentation attempt)\n\n`echoviz` allows you to view 3D voxel grids in different ways:\n- 2D slice of the grid\n  - `plot_slice`       2D slice of a voxel grid along chosen axis and slice, saved as PNG\n  - `sliced_sequence`  2D slice of several voxel grids along the same chosen axis and slice, saved as GIF\n  - `sliced_volume`    2D slices of one voxel grid along chosen axis for all slices (you can specify a stride), saved as GIF\n- 3D (interactive plot or \"static\", i.e. screenshot of the interactive view)\n  - `interactive_3d`  3D view of a voxel grid that the user can rotate and zoom in, saved as HTML\n  - `static_3d`       Screenshot of above function output\n- 4D for a sequence of voxel grids\n  - `animated_3d`  3D view of several voxel grids that the user can rotate and zoom in, saved as HTML\nIt is possible to add a target and/or a prediction on top of the input plot. In 2D they will be plotted side by side, in 3D they'll be plotted on top of each other.\n\nIn 3D it is also possible to plot the Signed Distance Function as a heatmap between the target and the prediction (negative when the prediction is inside the target). \"ASD\" is also available, it's the absolute value of the SDF.\n- `sdf_[interactive|static|animated]_3d`\n- `asd_[interactive|static|animated]_3d`\n\nAll functions expect to receive inputs as `VoxelGrid` or a list of `VoxelGrid`. Annotations/labels and predictions are **dictionaries** containing a `VoxelGrid` or list of `VoxelGrid` per key (keys are used to get the plot colour, chose between \"all\", \"anterior\" or \"posterior\".\n\n## Examples\n\nSee `tests/test.py` and `tests/test.ipynb`.\n\n NB: Some additional packages are needed to run the test scripts,\n - For `tests/test.py`, run `$ pip install h5py click`\n - For `tests/test.ipynb` run `$ pip install jupyterlab ipywidgets jupyter-dash`\n\n## Troubleshooting\n\n### Kaleido permission denied\nYou may need to make Kaleido executable files as executable manually: `chmod +x ~/<venv_name>/lib/python3.9/site-packages/kaleido-<version_number>.egg/kaleido/executable/kaleido ~/<venv_name>/lib/python3.9/site-packages/kaleido-<version_number>.egg/kaleido/executable/bin/kaleido`\nFor more detail see [here](https://stackoverflow.com/questions/43329028/ioerror-errno-13-permission-denied-when-trying-to-import-and-use-plotly)\n\n### Other\nPlease report any issues via the GitHub [issues tracker](https://github.com/mailys-hau/echoviz/issues).\n\n<br>\n\nThis package was built to plot TEE images and has not been tested on anything else, if you want to participate, you are more than welcome!\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Visualisation of 3D mitral valve",
    "version": "0.2.3",
    "project_urls": {
        "Bug Tracker": "https://github.com/mailys-hau/echoviz/issues",
        "Homepage": "https://github.com/mailys-hau/echoviz"
    },
    "split_keywords": [
        "visualisation",
        "plotly",
        "3d",
        "mitral valve"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c3df4114b31bd0d52255ce841fde7c996c24bc8d17a26a542d024e638fcf0279",
                "md5": "4e3feff8ea70a6d937f43fb9abc94e71",
                "sha256": "3a52b1290ae718dd65a0e1061acfdc455341ee228887a7bd3c5fadb4067c5198"
            },
            "downloads": -1,
            "filename": "echoviz_MALOU-0.2.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4e3feff8ea70a6d937f43fb9abc94e71",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 25217,
            "upload_time": "2023-09-22T17:41:55",
            "upload_time_iso_8601": "2023-09-22T17:41:55.061979Z",
            "url": "https://files.pythonhosted.org/packages/c3/df/4114b31bd0d52255ce841fde7c996c24bc8d17a26a542d024e638fcf0279/echoviz_MALOU-0.2.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8b5d99903c6438dad09e788571021a99cae20e0037bd8b85262e28924629bb02",
                "md5": "4d4b8bab2338ac31e8c5150a6c478f94",
                "sha256": "6947531106f75e5612d16df1976d33d1b638b963e7c7877788ded31aa851852f"
            },
            "downloads": -1,
            "filename": "echoviz-MALOU-0.2.3.tar.gz",
            "has_sig": false,
            "md5_digest": "4d4b8bab2338ac31e8c5150a6c478f94",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 25618,
            "upload_time": "2023-09-22T17:41:56",
            "upload_time_iso_8601": "2023-09-22T17:41:56.825964Z",
            "url": "https://files.pythonhosted.org/packages/8b/5d/99903c6438dad09e788571021a99cae20e0037bd8b85262e28924629bb02/echoviz-MALOU-0.2.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-22 17:41:56",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mailys-hau",
    "github_project": "echoviz",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "echoviz-malou"
}
        
Elapsed time: 0.12549s