create_synapses

singlecell_input_mapper.udvary2022.synapse_mapper.SynapseMapper.create_synapses(preType='Generic')

Creates instantiation of synapses on cell from synapse distribution.

Iterates the cell structures (e.g. “Soma”, “Dendrite”, “ApicalDendrite”). For each structure, creates a list of synapses per voxel by poisson sampling the synapse distribution mesh. Randomly assignes these synapses to any point on the morphology that lies within the same voxel.

Parameters:
preType : str

Type of presynaptic cell. Default is ‘Generic’.

Returns:

list of Synapse objects. Also updates the cell attribute to contain synapses.

Return type:

list