NeuroM: a light-weight neuron morphology analysis package
Project description
NeuroM is a Python-based toolkit for the analysis and processing of neuron morphologies.
The official documentation can be found here.
Dependencies
The build-time and runtime dependencies of NeuroM are:
numpy
h5py
scipy
matplotlib
enum34
Installation
It is recommended that you use pip to install into NeuroM into a virtualenv:
NeuroM installation
The following assumes virtualenv named nrm with access to the dependencies has been set up and activated. We will see two ways to install NeuroM
From the git repository
From source (for NeuroM developers)
Install package from git
Install the latest version:
(nrm)$ pip install git+https://github.com/BlueBrain/NeuroM.git
Install a particular release:
(nrm)$ pip install git+https://github.com/BlueBrain/NeuroM.git@neurom-v0.0.1
Install from source
Clone the repository and install it:
(nrm)$ git clone https://github.com/BlueBrain/NeuroM.git
(nrm)$ pip install -e ./NeuroM
This installs NeuroM into your virtualenv in “editable” mode. That means changes you make to the source code are seen by the installation. To install in read-only mode, omit the -e.
Examples
Perform checks on neuron morphology files:
(nrm)$ morph_check some/data/path/morph_file.swc # single file
INFO: ================================
INFO: Check file some/data/path/morph_file.swc...
INFO: Has valid soma? PASS
INFO: Has Apical Dendrite? PASS
INFO: Has Basal Dendrite? PASS
INFO: All neurites have non-zero radius? PASS
INFO: All segments have non-zero length? PASS
INFO: All sections have non-zero length? PASS
INFO: Check result: PASS
INFO: ================================
(nrm)$ morph_check some/data/path # all files in directory
....
Load a neuron and obtain some information from it:
>>> from neurom import ezy
>>> nrn = ezy.Neuron('some/data/path/morph_file.swc')
>>> apical_seg_lengths = nrn.get_segment_lengths(ezy.TreeType.apical_dendrite)
>>> axon_sec_lengths = nrn.get_section_lengths(ezy.TreeType.axon)
Visualize a neuronal morphology:
>>> # Initialize nrn as above
>>> fig, ax = ezy.view(nrn)
>>> fig.show()
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 neurom-0.0.10.tar.gz
.
File metadata
- Download URL: neurom-0.0.10.tar.gz
- Upload date:
- Size: 26.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa4ac983b1469a183ba58b0bca4deeafbeb263bb9d18a798e60685662116d795 |
|
MD5 | a27b04f70add5abd658c3a79d4f1bd61 |
|
BLAKE2b-256 | 577d31e31154f5a68b27b1788e5db4709b0ee847eced67b2dfa3962f270763b1 |