navis.example_neurons¶
- navis.example_neurons(n=None, kind='skeleton', synapses=True, source='swc')[source]¶
Load example neuron(s).
These example neurons are skeletons and meshes of the same olfactory projection neurons from the DA1 glomerulus which have been automatically segmented in the Janelia hemibrain data set [1]. See also https://neuprint.janelia.org.
Coordinates are in voxels which equal 8 x 8 x 8 nanometers.
- Parameters:
n (int | None, optional) – Number of neurons to return. If None, will return all available example neurons. Can never return more than the maximum number of available example neurons.
kind ("skeleton" | "mesh" | "mix") – Example neurons What kind of neurons to return.
synapses (bool,) – If True, will also load synapses.
source ('swc' | 'gml', optional) – Only relevant for skeletons. Skeletons can be generated from SWC files or GML graphs (this is really only used for testing).
- Returns:
TreeNeuron – If
n=1
andkind='skeleton'
.MeshNeuron – If
n=1
andkind='mesh'
.NeuronList – List of the above neuron types if
n>1
.
References
[1] Louis K. Scheffer et al., bioRxiv. 2020. doi: https://doi.org/10.1101/2020.04.07.030213 A Connectome and Analysis of the Adult Drosophila Central Brain.
Examples
Load a single neuron
>>> import navis >>> n = navis.example_neurons(n=1)
Load all example neurons
>>> nl = navis.example_neurons()