# TMD
[![Run all tox jobs using Python3](https://github.com/BlueBrain/TMD/actions/workflows/run-tox.yml/badge.svg)](https://github.com/BlueBrain/TMD/actions/workflows/run-tox.yml)
[![license](https://img.shields.io/pypi/l/tmd.svg)](https://github.com/BlueBrain/TMD/blob/master/LICENSE-LGPL.txt)
[![codecov.io](https://codecov.io/github/BlueBrain/TMD/coverage.svg?branch=master)](https://codecov.io/github/BlueBrain/TMD?branch=master)
[![Documentation Status](https://readthedocs.org/projects/tmd/badge/?version=latest)](http://tmd.readthedocs.io/en/latest/?badge=latest)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10678146.svg)](https://doi.org/10.5281/zenodo.10678146)
A python package for the topological analysis of neurons.
The TMD performs the topological analysis of neuronal morphologies and extracts the persistence
barcodes of trees.
This Python module includes:
* Basic loading of neuronal morphologies in swc and h5 file format.
* Extraction of the topological descriptors of tree morphologies.
* Visualization of neuronal trees and neurons.
* Plotting persistence diagrams, barcodes and images.
## Installation
This package should be installed using pip:
```bash
pip install TMD
```
For installation of optional viewers:
```bash
pip install TMD[viewer]
```
## Usage
```python
# Import the TMD toolkit in IPython
import tmd
# Load a neuron
neuron = tmd.io.load_neuron('input_path_to_file/input_file.swc')
# Extract the tmd of a neurite, i.e., neuronal tree
pd = tmd.methods.get_persistence_diagram(neuron.neurites[0])
```
## Citation
If you use this software or method for your research, we kindly ask you to cite the following publication associated to this repository:
**A Topological Representation of Branching Neuronal Morphologies**
_Cite this article as:_
Kanari, L., Dłotko P., Scolamiero M., et al., A Topological Representation of Branching Neuronal Morphologies, Neuroinformatics 16, nᵒ 1 (2018): 3‑13. https://doi.org/10.1007/s12021-017-9341-1.
## Related publications
**Comprehensive Morpho-Electrotonic Analysis Shows 2 Distinct Classes of L2 and L3 Pyramidal Neurons in Human Temporal Cortex, Cerebral Cortex**
_Cite this article as:_
Deitcher Y., Eyal G., Kanari L., et al., Comprehensive Morpho-Electrotonic Analysis Shows 2 Distinct Classes of L2 and L3 Pyramidal Neurons in Human Temporal Cortex, Cerebral Cortex, Volume 27, Issue 11, November 2017, Pages 5398–5414, https://doi.org/10.1093/cercor/bhx226
**Objective Morphological Classification of Neocortical Pyramidal Cells**:
_Cite this article as:_
Lida Kanari, Srikanth Ramaswamy, Ying Shi, Sebastien Morand, Julie Meystre, Rodrigo Perin, Marwan Abdellah, Yun Wang, Kathryn Hess, Henry Markram, Objective Morphological Classification of Neocortical Pyramidal Cells, Cerebral Cortex, Volume 29, Issue 4, April 2019, Pages 1719-1735, https://doi.org/10.1093/cercor/bhy339
Developed in Blue Brain Project.
## Funding & Acknowledgment
The development of this software was supported by funding to the Blue Brain Project, a research
center of the École polytechnique fédérale de Lausanne (EPFL), from the Swiss government’s ETH
Board of the Swiss Federal Institutes of Technology.
For license and authors, see `LICENSE.txt` and `AUTHORS.md` respectively.
Copyright © 2021-2022 Blue Brain Project/EPFL
Raw data
{
"_id": null,
"home_page": "https://TMD.readthedocs.io",
"name": "TMD",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": null,
"author": "Blue Brain Project, EPFL",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/12/b4/33ec0c71409c29459e5e7b87f891a8c2e447aed2c0f578a806604fae8a78/tmd-2.4.3.tar.gz",
"platform": null,
"description": "# TMD\n\n[![Run all tox jobs using Python3](https://github.com/BlueBrain/TMD/actions/workflows/run-tox.yml/badge.svg)](https://github.com/BlueBrain/TMD/actions/workflows/run-tox.yml)\n[![license](https://img.shields.io/pypi/l/tmd.svg)](https://github.com/BlueBrain/TMD/blob/master/LICENSE-LGPL.txt)\n[![codecov.io](https://codecov.io/github/BlueBrain/TMD/coverage.svg?branch=master)](https://codecov.io/github/BlueBrain/TMD?branch=master)\n[![Documentation Status](https://readthedocs.org/projects/tmd/badge/?version=latest)](http://tmd.readthedocs.io/en/latest/?badge=latest)\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10678146.svg)](https://doi.org/10.5281/zenodo.10678146)\n\nA python package for the topological analysis of neurons.\n\nThe TMD performs the topological analysis of neuronal morphologies and extracts the persistence\nbarcodes of trees.\n\nThis Python module includes:\n\n* Basic loading of neuronal morphologies in swc and h5 file format.\n* Extraction of the topological descriptors of tree morphologies.\n* Visualization of neuronal trees and neurons.\n* Plotting persistence diagrams, barcodes and images.\n\n\n## Installation\n\nThis package should be installed using pip:\n\n```bash\npip install TMD\n```\n\nFor installation of optional viewers:\n\n```bash\npip install TMD[viewer]\n```\n\n\n## Usage\n\n```python\n# Import the TMD toolkit in IPython\nimport tmd\n\n# Load a neuron\nneuron = tmd.io.load_neuron('input_path_to_file/input_file.swc')\n\n# Extract the tmd of a neurite, i.e., neuronal tree\npd = tmd.methods.get_persistence_diagram(neuron.neurites[0])\n```\n\n## Citation\n\nIf you use this software or method for your research, we kindly ask you to cite the following publication associated to this repository:\n\n**A Topological Representation of Branching Neuronal Morphologies**\n\n_Cite this article as:_\n\nKanari, L., D\u0142otko P., Scolamiero M., et al., A Topological Representation of Branching Neuronal Morphologies, Neuroinformatics 16, n\u1d52 1 (2018): 3\u201113. https://doi.org/10.1007/s12021-017-9341-1.\n\n\n## Related publications\n\n**Comprehensive Morpho-Electrotonic Analysis Shows 2 Distinct Classes of L2 and L3 Pyramidal Neurons in Human Temporal Cortex, Cerebral Cortex**\n\n_Cite this article as:_\n\nDeitcher Y., Eyal G., Kanari L., et al., Comprehensive Morpho-Electrotonic Analysis Shows 2 Distinct Classes of L2 and L3 Pyramidal Neurons in Human Temporal Cortex, Cerebral Cortex, Volume 27, Issue 11, November 2017, Pages 5398\u20135414, https://doi.org/10.1093/cercor/bhx226\n\n**Objective Morphological Classification of Neocortical Pyramidal Cells**:\n\n_Cite this article as:_\n\nLida Kanari, Srikanth Ramaswamy, Ying Shi, Sebastien Morand, Julie Meystre, Rodrigo Perin, Marwan Abdellah, Yun Wang, Kathryn Hess, Henry Markram, Objective Morphological Classification of Neocortical Pyramidal Cells, Cerebral Cortex, Volume 29, Issue 4, April 2019, Pages 1719-1735, https://doi.org/10.1093/cercor/bhy339\n\nDeveloped in Blue Brain Project.\n\n## Funding & Acknowledgment\n\nThe development of this software was supported by funding to the Blue Brain Project, a research\ncenter of the \u00c9cole polytechnique f\u00e9d\u00e9rale de Lausanne (EPFL), from the Swiss government\u2019s ETH\nBoard of the Swiss Federal Institutes of Technology.\n\nFor license and authors, see `LICENSE.txt` and `AUTHORS.md` respectively.\n\nCopyright \u00a9 2021-2022 Blue Brain Project/EPFL\n",
"bugtrack_url": null,
"license": "GNU Lesser General Public License v3.0",
"summary": "A python package for the topological analysis of neurons.",
"version": "2.4.3",
"project_urls": {
"Homepage": "https://TMD.readthedocs.io",
"Source": "https://github.com/BlueBrain/TMD",
"Tracker": "https://github.com/BlueBrain/TMD/issues"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8fd79ebdce7a75d90dfde82a2f0de550c4555caad58c7d2bde5e32c0ba870476",
"md5": "78ce871787dc64243a071efa3e553339",
"sha256": "a4914d2872dba5b21f898f7ea761cc08b70a33065457f8a5d7b292e763ade47a"
},
"downloads": -1,
"filename": "TMD-2.4.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "78ce871787dc64243a071efa3e553339",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 59045,
"upload_time": "2024-05-16T12:12:42",
"upload_time_iso_8601": "2024-05-16T12:12:42.921806Z",
"url": "https://files.pythonhosted.org/packages/8f/d7/9ebdce7a75d90dfde82a2f0de550c4555caad58c7d2bde5e32c0ba870476/TMD-2.4.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "12b433ec0c71409c29459e5e7b87f891a8c2e447aed2c0f578a806604fae8a78",
"md5": "fe05b672e2059069b37b59f852a29a02",
"sha256": "9bfd35d0da9b487bb711aad02fd9a571e945596967b7fe95908c739b6c02693e"
},
"downloads": -1,
"filename": "tmd-2.4.3.tar.gz",
"has_sig": false,
"md5_digest": "fe05b672e2059069b37b59f852a29a02",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 133085,
"upload_time": "2024-05-16T12:12:44",
"upload_time_iso_8601": "2024-05-16T12:12:44.231612Z",
"url": "https://files.pythonhosted.org/packages/12/b4/33ec0c71409c29459e5e7b87f891a8c2e447aed2c0f578a806604fae8a78/tmd-2.4.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-16 12:12:44",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "BlueBrain",
"github_project": "TMD",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "tmd"
}