CLI tool to convert SWC neuron morphology files into JSON files. SWC files must respect this spec.
$ sudo npm install -g swctojson
Convert SWC neuron morphology files into JSON.
Usage:
-in=/path/to/swcfile.swc The SWC file to convert (input)
-out=/path/to/jsonfile.json The JSON file to save (output)
Such as:
$ swctojson -in=/path/to/swcfile.swc -out=/path/to/jsonfile.json
The JSON output is compatible with the morphology 3D viewer morphoviewer.