visualize
❭ dendrogram
❭ _DendrogramSection
_DendrogramSection¶
-
class visualize.dendrogram._DendrogramSection(name, x_dist_start, x_dist_end, sec, main_bifurcation=
False
, sec_id=None
)¶ A class to represent a dendrogram section.
A dendrogram section is a single neuron section, as it is represented in a dendrogram. It does not necessarily contain any morphological information. The usecase of this class is to be a leightweight dataclass, used in the
Dendrogram
andDendrogramStatistics
classes.- Parameters:¶
name (str) – The name of the section.
x_dist_start (float) – The starting distance of the section in \(\mu m\).
x_dist_end (float) – The ending distance of the section in \(\mu m\).
sec (
PySection
) – The neuron section.main_bifurcation (bool) – Whether the section is the main bifurcation. Default is
False
.sec_id (int) – The section id of the section.
- Attributes:¶
- Methods:¶
_add_synapse
(label, x)Add a synapse to a dendrogram section.