# neurolucida-xml

> NeurolucidaXML will be a JavaScript library to parse data from Neurolucida XML files. I just start with this project, so it is far away from being complete.

Latest version **0.1.1** (published 2014-10-13) · GNU General Public License license · 0 weekly downloads

## Install

```sh
npm install neurolucida-xml
pnpm add neurolucida-xml
yarn add neurolucida-xml
bun add neurolucida-xml
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2014-10-13 |
| First published | 2014-08-17 |
| Weekly downloads | 0 |
| License | GNU General Public License |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.8.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+8 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Sascha Grothe |
| Maintainers | sghgw |

## Links

- npm: https://www.npmjs.com/package/neurolucida-xml
- Repository: https://github.com/sghgw/NeurolucidaXML
- Issues: https://github.com/sghgw/NeurolucidaXML/issues
- npm.io page: https://npm.io/package/neurolucida-xml

## Dependencies (1)

- [xmldom](https://npm.io/package/xmldom.md) ^0.1.19

## Recent versions

- 0.1.1 (latest) — 2014-10-13
- 0.1.0 — 2014-10-12
- 0.0.4 — 2014-08-17
- 0.0.3 — 2014-08-17
- 0.0.1 — 2014-08-17

## README

# NeurolucidaXML

NeurolucidaXML will be a JavaScript library to parse data from Neurolucida XML files. I just start with this project, so it is far away from being complete.

## Installation
Install it with npm:
```
$ npm install neurolucida-xml
```
and use it with node:
```JavaScript
var NeurolucidaXML = require('neurolucida-xml').NeurolucidaXML;
```
or in [CoffeeScript](http://coffeescript.org/):
```CoffeeScript
{NeurolucidaXML} = require 'neurolucida-xml'
```

If you want to install it manually:
```HTML
<script src="lib/neurolucida-xml.js"></script>
<!-- Or use minified version -->
<script src="lib/neurolucida-xml.min.js"></script>
```

## Usage
JavaScript:
```JavaScript
// Initialize new instance of NeurolucidaXML parser
var parser = new NeurolucidaXML;

// Load XML string
var xmlString = '<mbf>...</mbf>';
parser.load(xmlString);

// Get dendrite data as an array of dendrite objects
parser.getDendrites();
```

## Data
NeuroluciaXML extracts data of dendrites and spines. Axons and cell bodies data is coming soon.

`parser.getDendrites()` will return an array of dendrite objects. The dendrite object looks like this:
```JavaScript
{
	name:           'name',
	diameter:       0.76,   // in µm	
	length:         12.7,   // in µm
	surface:        12.756, // in µm²
	volume:         1.022,	  // in µm³
	total_spines:   26,     // number of spines
	spine_density:	 2.04,	    // in 1/µm
	spine_means: {
		length:      1.34,	    // in µm
		diameter:    0.32     // in µm
	},
	spines:         [{spineObject}, ... , {spineObject}]
}
```

## Copyright and License
Copyright (c) 2014  Sascha Grothe

NeurolucidaXML is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License.

NeurolucidaXML is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the [GNU General Public License](http://www.gnu.org/licenses/) for more details.

---
_Source: https://npm.io/package/neurolucida-xml · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
