neurom.core._soma.SomaCylinders¶
-
class
neurom.core._soma.
SomaCylinders
(points)[source]¶ Bases:
neurom.core._soma.Soma
Soma composed of cylinders (like in SWC)
points describe the locations of the cylinder start/end points, with their respective radii, much like how neurites are described:
ex:
/) / o) ______ / ) (|) ) / / ( o ) o )/ (|)_____ )
Here we have a ‘side-view’, with each ‘o’ representing a point, and the radius is the heigh of a ‘|’ character, and the ‘)’ try and show the curvature of the cylinger
Note: when, as in the case above, the cylinder center points don’t lie in a line, then the overlap between cylinders isn’t taken into account for the area calculation
Methods
__init__
x.__init__(…) initializes x; see help(type(x)) for signature iter
Iterator to soma contents Attributes
center
Obtain the center from the first stored point points
Get the set of (x, y, z, r) points this soma