Tree-like morphology data processing
Project description
treem - Neuron Morphology Processing Tool
The treem module (pronounced "trim") provides data structures and
command-line tools for accessing and manipulating digital reconstructions
of neuronal morphology in the Stockley-Wheal-Cannon (SWC) format.
Main classes
Access to morphological data from the source code is provided through the
classes Tree, Node, Morph, and SWC:
Tree- Recursive tree data structureNode- Morphology data storageMorph- Neuron morphology representationSWC- Definitions of the data format
Commands
Common operations with SWC files can be performed using the swc
command-line tool:
swc <command> [options] file
Alternatively:
swc <command> file [file ...] [options]
List of swc commands:
check- tests morphology reconstruction for structural consistencyconvert- converts morphology to compliant SWC formatfind- locates single nodes in the reconstructionmeasure- calculates morphometric featuresmodify- manipulates morphology reconstructionrender- displays 3D model of the reconstructionrepair- corrects reconstruction errorsview- shows morphology structure
Installation
Install the latest stable release:
pip install treem
Install a development version:
pip install git+https://github.com/a1eko/treem
See also pip documentation for installation alternatives.
Dependencies
The treem module has minimal runtime dependencies:
- Python >= 3.7
matplotlibnumpyPyOpenGL(optional, enablesswc rendercommand)
For testing and documentation, treem requires additional development packages with
third-party extensions:
sphinxwithnapoleonandprogramoutputextensionspytestwithpytest-covpluginsphinx-rtd-themecoverage
Documentation
Documentation is available online at Read the Docs.
Citation
- Hjorth JJJ, Hellgren Kotaleski J, Kozlov A (2021) Predicting Synaptic Connectivity for Large-Scale Microcircuit Simulations Using Snudda. Neuroinformatics, 19(4):685-701. DOI: 10.1007/s12021-021-09531-w.
Funding
Horizon 2020 Framework Programme (785907, HBP SGA2); Horizon 2020 Framework Programme (945539, HBP SGA3); Vetenskapsrådet (VR-M-2017-02806, VR-M-2020-01652); Swedish e-science Research Center (SeRC); KTH Digital Futures.
We acknowledge the use of Fenix Infrastructure resources, which are partially funded from the European Union's Horizon 2020 research and innovation programme through the ICEI project under the grant agreement No. 800858.
The computations and testing were enabled by resources provided by the National Academic Infrastructure for Supercomputing in Sweden (NAISS), partially funded by the Swedish Research Council through grant agreement no. 2022-06725, also by the Swedish National Infrastructure for Computing (SNIC) at PDC KTH partially funded by the Swedish Research Council through grant agreement no. 2018-05973.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file treem-1.1.1.tar.gz.
File metadata
- Download URL: treem-1.1.1.tar.gz
- Upload date:
- Size: 32.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f25cad2c6854455fc97a143684611db854d5da66d4edb015e44fd11df630459
|
|
| MD5 |
78e6454e332999b7c29c90f7517c65e8
|
|
| BLAKE2b-256 |
9d47a9f89d0964662a40a588dc64b62cfc8c98a63f59595c9a3340bc0aff4a90
|