lightning-celltypes-morphology

This is a lightning-viz plugin for creating a 3D visualualization of a neuron reconstruction from the Allen Cell Types Database.

installation

$ git clone https://github.com/dyf/lightning-celltypes-morphology.git
$ cd lightning-celltypes-morphology
$ npm link .

Then you need to import the visualization into a lightning server.

$ cd /path/to/lightning
$ npm start

Open http://localhost:3000, import the visualization as a local NPM module.

usage

If you are inside an IPython/Jupyter notebook, you can:

> from lightning import Lightning 
> lgn = Lightning(ipython=True)
> specimen_id = 471088062
> lgn.plot(type='lightning-celltypes-morphology', data={ 'specimen_id': [ specimen_id ] })