single_cell_parsersynapse_mapperSynapseMappercreate_synapses

SynapseMapper.create_synapses

single_cell_parser.synapse_mapper.SynapseMapper.create_synapses(preType='Generic')

Map synapses onto a morphology based on a synapse distribution.

In this case, synDist has to be a ScalarField of synapse densities.

This method is nearly identical to singlecell_inputmapper’s create_synapses(), but with the following differences:

  • the synapse density is not drawn from a Poisson distribution if isDensity is False.

  • the synapses are not assigned on a per-structure basis (e.g. separate for soma, dendrite, axon …)

It is added here for completeness, in case you need a singular, quick network realization. For a specialized network realization with more fine-grained control, use the singlecell_inputmapper.singlecell_input_mapper package instead.

Parameters:

preType (str) – The type of presynaptic cell. Default: ‘Generic’.