AxonToSoma

Contents

AxonToSoma#

class braintools.conn.AxonToSoma(**kwargs)#

Specialized connectivity from axon to soma compartments.

This creates connections specifically from axon compartments to soma compartments, representing direct synaptic input to the cell body.

Changed in version 0.4.0: Pairs are sampled as in CompartmentSpecific (binomial edge count, then distinct pairs), so the edges for a given seed differ from 0.3.

Examples

>>> import brainunit as u
>>> from braintools.conn import AxonToSoma
>>> from braintools.init import LogNormal
>>> axon_soma = AxonToSoma(
...     connection_prob=0.05,
...     weight=LogNormal(mean=1.0 * u.nS, std=0.3 * u.nS),
...     seed=0,
... )
>>> result = axon_soma(pre_size=50, post_size=50)
>>> result.n_connections
127