hnn_core.L5Basket

class hnn_core.L5Basket(pos, gid=None)

Class for layer 5 basket cells.

Parameters
postuple

Coordinates of cell soma in xyz-space

gidint or None (optional)

Each cell in a network is uniquely identified by it’s “global ID”: GID. The GID is an integer from 0 to n_cells, or None if the cell is not yet attached to a network. Once the GID is set, it cannot be changed.

__repr__()

Return repr(self).

create_soma()

Create soma and set geometry.

create_tonic_bias(amplitude, t0, T, loc=0.5)

Create tonic bias at the soma.

Parameters
amplitudefloat

The amplitude of the input.

t0float

The start time of tonic input (in ms).

Tfloat

The end time of tonic input (in ms).

locfloat (0 to 1)

The location of the input in the soma section.

get_sections()

Get sections.

insert_dipole(yscale)

Insert dipole into each section of this cell.

Parameters
yscaledict

Dictionary of length scales to calculate dipole without 3d shape.

move_to_pos()

Move cell to position.

parconnect_from_src(gid_presyn, nc_dict, postsyn)
Parallel receptor-centric connect FROM presyn TO this cell,

based on GID.

Parameters
gid_presynint

The cell ID of the presynaptic neuron

nc_dictdict

Dictionary with keys: pos_src, A_weight, A_delay, lamtha Defines the connection parameters

postsyninstance of h.Exp2Syn

The postsynaptic cell object.

Returns
ncinstance of h.NetCon

A network connection object.

record_soma(record_vsoma=False, record_isoma=False)

Record current and voltage at soma.

Parameters
record_vsomabool

Option to record somatic voltages from cells

record_isomabool

Option to record somatic currents from cells

setup_source_netcon(threshold)

Created for _PC.cell and specifies SOURCES of spikes.

Parameters
thresholdfloat

The voltage threshold for action potential.

shape_soma()

Define 3D shape of soma.

Warning

needed for gui representation of cell DO NOT need to call h.define_shape() explicitly!

syn_create(secloc, e, tau1, tau2)

Create an h.Exp2Syn synapse.

Parameters
seclocinstance of nrn.Segment

The section location. E.g., soma(0.5).

e: float

Reverse potential (in mV)

tau1: float

Rise time (in ms)

tau2: float

Decay time (in ms)

Returns
syninstance of h.Exp2Syn

A two state kinetic scheme synapse.