0.1.11 • Published 3 years ago

swcmorphologyparser v0.1.11

Weekly downloads
21
License
MIT
Repository
github
Last release
3 years ago

SWC moprhology parser

An instance of SwcParser is made to parse SWC files with the given specification.
The data output by this parser is a Javascript object representing a the tree structure of the morphology. Each node of the tree is a section that contain a reference to its parent section and references to its children sections. The tree is given flat, meaning all the sections are at the same hierarchy level within the JS object and every section is identified by an arbitrary ID.

Example

let swcParser = new swcmorphologyparser.SwcParser()
swcParser.parse(data)
let rawMorpho = swcParser.getRawMorphology()

// if rawMorpho is null, then it mean the file was not a propper SWC

Where data is the sting content of a SWC file.

  • DEMO TEXT - Output a JSON of the morphology tree
  • DEMO 3D - Output a 3D morphology
0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago