Skip to main content

Tree-like morphology data processing tool

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.

Release PyPI version Python versions tested License
Platforms Tested on Linux Tested on macOS Tested on Windows
Development Build status Quality Gate status Code coverage Documentation status
Reference Citation DOI link Zenodo DOI

Main classes

Access to morphological data from the source code is provided through the classes Tree, Node, Morph, and SWC:

  • Tree for recursive tree data structure
  • Node for morphology data storage
  • Morph for neuron morphology representation
  • SWC for 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 consistency
  • convert converts morphology to compliant SWC format
  • find locates single nodes in the reconstruction
  • measure calculates morphometric features
  • modify manipulates morphology reconstruction
  • render displays 3D model of the reconstruction
  • repair corrects reconstruction errors
  • view 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
  • matplotlib
  • numpy
  • PyOpenGL optional, enables swc render command

For testing and documentation, treem requires additional development packages with third-party support:

  • sphinx with napoleon and programoutput extensions
  • sphinx-rtd-theme
  • pytest with optional pytest-cov plugin
  • coverage

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.

  • Kozlov AK (2021) Treem - neuron morphology processing tool. Zenodo. DOI: 10.5281/zenodo.4890844.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

treem-1.2.0.dev19.tar.gz (2.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

treem-1.2.0.dev19-py3-none-any.whl (49.9 kB view details)

Uploaded Python 3

File details

Details for the file treem-1.2.0.dev19.tar.gz.

File metadata

  • Download URL: treem-1.2.0.dev19.tar.gz
  • Upload date:
  • Size: 2.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for treem-1.2.0.dev19.tar.gz
Algorithm Hash digest
SHA256 3675ea2b5716c455558e93aaf424460dac9ccd52e27d7edad3df996fc9dc6439
MD5 a1680bcaeae052a945d6a059c54fe6f1
BLAKE2b-256 793d45bb9306c4fe1b22185de3948ae0d05c8c6f3982082ebac854f55d362a32

See more details on using hashes here.

Provenance

The following attestation bundles were made for treem-1.2.0.dev19.tar.gz:

Publisher: build.yml on a1eko/treem

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file treem-1.2.0.dev19-py3-none-any.whl.

File metadata

  • Download URL: treem-1.2.0.dev19-py3-none-any.whl
  • Upload date:
  • Size: 49.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for treem-1.2.0.dev19-py3-none-any.whl
Algorithm Hash digest
SHA256 608745dd27faa1a506abf9e4346c67e0e24c50243289858b45041ba01ed318de
MD5 eb390e3ae8a7c5920d0a6c16e9ce1b04
BLAKE2b-256 84b569799745db38e244674b9200cbf2a84ec05c8a48c8a938a43b161e593733

See more details on using hashes here.

Provenance

The following attestation bundles were made for treem-1.2.0.dev19-py3-none-any.whl:

Publisher: build.yml on a1eko/treem

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page