Links

visualise

Contents

MorphologyScene

__init__ [#35]

Check the source code online
def __init__(self, *args, **kwargs):
  docstring:
no docstring

_add_neurons_get_colors [#62]

Check the source code online
def _add_neurons_get_colors(self, neurons, color):
  docstring:
Parses color argument for self.add_neurons
:para, neurons: list of Neuron object or file paths...
:param color: default None. Can be:
- None: each neuron is colored according to the default color
- color: rbg, hex etc. If a single color is passed all neurons will
have that color
- cmap: str with name of a colormap: neurons are colored based on
their sequential order and cmap
- dict: a dictionary specifying a color for soma, dendrites and axon
actors, will be the same for all neurons
- list: a list of length = number of neurons with either a single
color for each neuron
or a dictionary of colors for each neuron

add_neurons [#180]

Check the source code online
def add_neurons(self, neurons, color=None, display_axon=True,
display_dendrites=True, alpha=1, neurite_radius=None):
  docstring:
Adds rendered morphological data of neurons reconstructions downloaded
from the
Mouse Light project at Janelia, neuromorpho.org and other sources.
Accepts neurons argument as:
- file(s) with morphological data
- vedo mesh actor(s) of neurons reconstructions
- dictionary or list of dictionary with actors for different neuron
parts
:param self: instance of brainrender Scene to use to render neurons
:param neurons: str, list, dict. File(s) with neurons data or list of
rendered neurons.
:param display_axon, display_dendrites: if set to False the
corresponding neurite is not rendered
:param color: default None. Can be:
- None: each neuron is colored according to the default color
- color: rbg, hex etc. If a single color is passed all neurons will
have that color
- cmap: str with name of a colormap: neurons are colored based on
their sequential order and cmap
- dict: a dictionary specifying a color for soma, dendrites and axon
actors, will be the same for all neurons
- list: a list of length = number of neurons with either a single
color for each neuron
or a dictionary of colors for each neuron
:param alpha: float in range 0,1. Neurons transparency
:param neurite_radius: float > 0 , radius of tube actor representing
neurites
Last modified 2yr ago