Cell Parameter Configuration

Configure the cell parameters for each trial

class PyLongQt.CellParameters.PvarsCell

Base class for protocol specific pvars, pvars control cell parameters, which are values set at the beginning of a simulation and are not changed throughout. Different trials may have different parameter values. pvars provides a simple class to control these cell parameter settings.

class Distribution

Possible distributions for cell parameter rules

Members:

none : No distribution

normal : Gaussian distribution \(N(\mu, \sigma^2)\)

lognormal : Log-Gaussian distribution \(exp(N(\mu, \sigma^2))\)

lognormal = Distribution.lognormal
property name

handle) -> str

Type

(self

none = Distribution.none
normal = Distribution.normal
class IonChanParam

A rule for a cell parameter

Depending on the distribution the rule’s values have different meanings

Distribution values:

none
val1

The starting value

val2

The increment amount for each trial (may be positive or negative)

normal
val1

The mean \(\mu\) (may be positive or negative)

val2

The standard deviation \(\sigma\) (must be positive)

lognormal
val1

The mean of the underlying normal distribution \(\mu\) (may be positive or negative)

val2

The standard deviation of the underlying normal distribution \(\sigma\) (must be positive)

property dist

The distribution, which alters the meaning of the other members

property val0

Depends on distribution, see class description

property val1

Depends on distribution, see class description

__delitem__(self: PyLongQt._PyLongQt.CellParameters.PvarsCell, name: str) → None
Delete a specific rule
name

The cell parameter’s name

__getitem__(self: PyLongQt._PyLongQt.CellParameters.PvarsCell, name: str) → LongQt::PvarsCell::IonChanParam
Retrieve the rule for a cell parameter
name

The cell parameter’s name

__iter__(self: PyLongQt._PyLongQt.CellParameters.PvarsCell) → iterator

Iterate over cell parameters

__setitem__(self: PyLongQt._PyLongQt.CellParameters.PvarsCell, name: str, parameter: LongQt::PvarsCell::IonChanParam) → None
Insert a new rule to define cell parameter values
name

The cell parameter’s name

parameter

The rule which defines how the cell parameter will be set

calcIonChanParams(self: PyLongQt._PyLongQt.CellParameters.PvarsCell) → None

Re-calculate the ion channel parameters

clear(self: PyLongQt._PyLongQt.CellParameters.PvarsCell) → None

Delete all of the rules

lognormal = Distribution.lognormal
none = Distribution.none
normal = Distribution.normal
setIonChanParams(self: PyLongQt._PyLongQt.CellParameters.PvarsCell) → None

Apply ion channel parameters to cell(s)

class PyLongQt.CellParameters.PvarsCurrentClamp

Pvars specialized for the current clamp protocol

class TIonChanParam

IonChanParam specialized for the current clamp protocol, this subclass will be created automatically when an IonChanParam is assigned to a pvars

property trials

The cell parameter values for each trial

class PyLongQt.CellParameters.PvarsGrid

Pvars specialized for the grid protocol

class MIonChanParam

IonChanParam specialized for the gird protocol, this subclass will be created automatically when an IonChanParam is assigned to a pvars

property cells

The cells and the values they will be set to

property maxDist

The maximum distance from the start that the rule will be applied

property maxVal

The maxiumum value the rule will set the parameter for any cell to

property startCells

The starting cells. These are the first cells the rule is applied to, and the rule step is appliedoutward until the maxiumum distance is obtained.

setMaxDistAndVal(self: PyLongQt._PyLongQt.CellParameters.PvarsGrid, name: str, maxDist: int, maxVal: float) → None

Set the maximum distance and the maximum value for a rule

setStartCells(self: PyLongQt._PyLongQt.CellParameters.PvarsGrid, name: str, startCells: Set[Tuple[int, int]]) → None

Set the cell locations in the grid that the rule will start from

class PyLongQt.CellParameters.PvarsVoltageClamp

Pvars specialized for the current clamp protocol

class SIonChanParam

IonChanParam specialized for the voltage clamp protocol, this subclass will be created automatically when an IonChanParam is assigned to a pvars

property val

The cell parameter value for the trial