visualise

Contents

MorphologyScene

__init__ [#35]

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

_add_neurons_get_colors [#62]

Check the source code online
1
def _add_neurons_get_colors(self, neurons, color):
Copied!
  docstring:
1
Parses color argument for self.add_neurons
2
3
:para, neurons: list of Neuron object or file paths...
4
5
:param color: default None. Can be:
6
7
- None: each neuron is colored according to the default color
8
9
- color: rbg, hex etc. If a single color is passed all neurons will
10
have that color
11
12
- cmap: str with name of a colormap: neurons are colored based on
13
their sequential order and cmap
14
15
- dict: a dictionary specifying a color for soma, dendrites and axon
16
actors, will be the same for all neurons
17
18
- list: a list of length = number of neurons with either a single
19
color for each neuron
20
21
or a dictionary of colors for each neuron
Copied!

add_neurons [#180]

Check the source code online
1
def add_neurons(self, neurons, color=None, display_axon=True,
2
display_dendrites=True, alpha=1, neurite_radius=None):
Copied!
  docstring:
1
Adds rendered morphological data of neurons reconstructions downloaded
2
from the
3
4
Mouse Light project at Janelia, neuromorpho.org and other sources.
5
6
Accepts neurons argument as:
7
8
- file(s) with morphological data
9
10
- vedo mesh actor(s) of neurons reconstructions
11
12
- dictionary or list of dictionary with actors for different neuron
13
parts
14
15
:param self: instance of brainrender Scene to use to render neurons
16
17
:param neurons: str, list, dict. File(s) with neurons data or list of
18
rendered neurons.
19
20
:param display_axon, display_dendrites: if set to False the
21
corresponding neurite is not rendered
22
23
:param color: default None. Can be:
24
25
- None: each neuron is colored according to the default color
26
27
- color: rbg, hex etc. If a single color is passed all neurons will
28
have that color
29
30
- cmap: str with name of a colormap: neurons are colored based on
31
their sequential order and cmap
32
33
- dict: a dictionary specifying a color for soma, dendrites and axon
34
actors, will be the same for all neurons
35
36
- list: a list of length = number of neurons with either a single
37
color for each neuron
38
39
or a dictionary of colors for each neuron
40
41
:param alpha: float in range 0,1. Neurons transparency
42
43
:param neurite_radius: float > 0 , radius of tube actor representing
44
neurites
Copied!
Last modified 1yr ago