SynapseMapper¶
-
class singlecell_input_mapper.udvary2022.synapse_mapper.SynapseMapper(cell: singlecell_input_mapper.udvary2022.cell.Cell, synDist=
None, isDensity=True)¶ Bases:
objectAssign synapses to neuron morphology from density meshes.
Poisson sample the synapse distribution mesh and assign them to a random point on the morphology that lies within the same voxel.
- Parameters:¶
- Attributes:¶
-
- synDist¶
Synapse distribution mesh. Can be either a density or a realization (i.e. whole number values per voxel).
- Type:¶
ScalarField
- Methods:¶
create_synapses(preType)Creates instantiation of synapses on cell from synapse distribution.
Fills
voxelEdgeMapwith voxel indices, and the section and point indices that the voxel contains._intersect_bboxes(bbox1, bbox2)Check if two bounding boxes overlap
_pt_in_box(pt, box)Check if a point is inside a bounding box.
_compute_path_length(sec, x)Calculate the path length betwen the soma and location
xon sectionsec
Documentation unclear, incomplete, broken or wrong? Let us know