Skip to content

Detect branch intersections in SWC morphology data file

License

Notifications You must be signed in to change notification settings

CNS-OIST/SWCIntersectDetect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Branch Intersection Detection for SWC/NEURON Morphology

This module reads a SWC(.swc) or NEURON (.nrn) morphology file commonly used in Light Microscopic (LM) image reconstruction, then detects and labels the intersected branches based on spherical interpolation and graph theory. The detected intersections are written to an output file for curation.

Prerequisite

Download and Installation

git clone https://github.com/CNS-OIST/SWCIntersectDetect.git
cd SWCIntersectDetect
python setup.py install

Usage

in Python interface, import the module

import swc_intersect_detect

If you want to convert NEURON .nrn morphology to .swc file, use

from swc_intersect_detect import morph_io
morph_io.nrn2swc(NRN_FILE, SWC_OUTPUT)

To perform intersection detection, use

swc_intersect_detect.run(SWC_FILE)

for more parameter control details, use

help(swc_intersect_detect.run)

Example

An example is provided in example/purkinje.py, which first converts the example/Purkinje19b972-1.nrn morphology to a swc file, then performs intersection detection on the morphology data. The curation file can be visualized in neuTube as below, with curation tag (intersections) colored red. curation

About

Detect branch intersections in SWC morphology data file

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages