Skip to main content

Tree-like morphology data processing

Project description

treem - neuron morphology processing tool

Module provides data structure and command-line tools for accessing and manipulating the digital reconstructions of the neuron morphology in Stockley-Wheal-Cannon format (SWC).

PyPI version License: MIT Documentation Status Build Status Coverage Status

Main classes

Access to morphological data from the source code is supported by the classes Tree, Node, Morph and SWC.

  • Tree - Recursive tree data structure
  • Node - Morphology data storage
  • Morph - Neuron morphology representation
  • SWC - Definitions of the data format

Commands

Common operations with SWC files are possible via the swc command-line tool:

swc <command> [options] file

List of swc commands:

  • check - Test morphology reconstruction for structural consistency
  • convert - Convert morphology to compliant SWC format
  • find - Locate single nodes in the reconstruction
  • measure - Calculate morphometric features
  • modify - Manipulate morphology reconstruction
  • render - Display 3D model of the reconstruction
  • repair - Correct reconstruction errors
  • view - Show morphology structure

Installation

Install the latest stable release:

pip3 install treem

Install a development version:

pip3 install git+git://github.com/a1eko/treem

See also pip3 documentation for installation alternatives.

Dependencies

Module treem has minimal runtime dependencies:

  • python >= 3.7
  • matplotlib
  • numpy
  • PyOpenGL (optional) enables swc render command

For testing and documentation, treem needs development packages with third-party extensions:

  • sphinx with napoleon and programoutput
  • pytest with pytest-cov
  • coverage

Documentation

Documentation is available online at Read the Docs.

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.

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

Uploaded Source

Built Distribution

treem-1.0.3-py3-none-any.whl (34.5 kB view details)

Uploaded Python 3

File details

Details for the file treem-1.0.3.tar.gz.

File metadata

  • Download URL: treem-1.0.3.tar.gz
  • Upload date:
  • Size: 27.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.7

File hashes

Hashes for treem-1.0.3.tar.gz
Algorithm Hash digest
SHA256 b92db18d9c0dd95151005d6c5825d2f1380fb342ad362178cff3ae19d4f04daf
MD5 97465d9eb12bbb44a8b7d64f72f893c5
BLAKE2b-256 4ffe2a834702adf5a879379f4cfb9b10e4da59678ef1655f5af4d23b2d2d1bf1

See more details on using hashes here.

File details

Details for the file treem-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: treem-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 34.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.7

File hashes

Hashes for treem-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e4e98d594f5773c8260bc7040931fd47879ca00977c5e205e3c59f2e33da159c
MD5 67d459ca262f427dfb0a7408b3b45bd5
BLAKE2b-256 f6cf521fc7cc3a7da3b41fccc1f527e6265a64b0fdcb2a0d70e0925ad611a9e3

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