eoscircuits.antcircuits package¶
Subpackages¶
Submodules¶
eoscircuits.antcircuits.circuit module¶
Antenna Circuit
This module supports:
1. Changing the affinity values of each of the odorant-receptor pairs characterizing the input of the Odorant Transduction Process. 2. Changing parameter values of the Biological Spike Generators (BSGs) associated with each OSN. 3. Changing the number of OSNs expressing the same Odorant Receptor (OR) type.
-
class
eoscircuits.antcircuits.circuit.
ANTCircuit
(graph, config)[source]¶ Bases:
eoscircuits.basecircuit.Circuit
Antenna Circuit
- Parameters
graph (networkx.classes.multidigraph.MultiDiGraph) –
config (eoscircuits.antcircuits.circuit.ANTConfig) –
- Return type
None
-
config
: eoscircuits.antcircuits.circuit.ANTConfig¶ Configuration of Circuit. Fully Specifies the Circuit
-
classmethod
create_from_config
(cfg)[source]¶ Create Instance from Config
- Parameters
cfg – Config instance that specifies the configuration of the module
- Returns
A new ANTCircuit instance
- Return type
-
classmethod
create_graph
(cfg)[source]¶ class method that creates an instance of networkx graph from configuration
- Return type
networkx.classes.multidigraph.MultiDiGraph
-
extra_comps
: List[NDComponent]¶ Extra Components to be aded to NeuroKernel at Run Time
-
get_node_ids
(node_type, receptor=None)[source]¶ - Parameters
node_type (ANTConfig.node_types) –
receptor (Union[str, Iterable[str]]) –
- Return type
list
-
property
inputs
¶ Output OTP Nodes IDs and the Variables
-
property
outputs
¶ Output BSG Nodes IDs and the Variables
-
set_NO
(NO, receptor=None, aff_noise_std=0.0)[source]¶ Change number of OSNs expressing each receptor type
- Parameters
NO (Union[int, Iterable[int]]) –
- Return type
None
-
class
eoscircuits.antcircuits.circuit.
ANTConfig
(NO, affs, receptors=None, resting=None, node_params=<factory>, osns=None)[source]¶ Bases:
eoscircuits.basecircuit.Config
Configuration for Antenna Circuits
- Parameters
NO (Iterable[Iterable[int]]) –
affs (Iterable[float]) –
receptors (Iterable[str]) –
resting (float) –
node_params (dict) –
osns (Iterable[Iterable[str]]) –
- Return type
None
-
NO
: Iterable[Iterable[int]]¶ Number of OSNs per Receptor Type
-
property
NR
¶ Number of Receptors
-
affs
: Iterable[float]¶ Affinity Values
-
property
brs
¶ Binding Rates of the OTPs
-
property
drs
¶ Binding Rates of the OTPs
-
node_params
: dict¶ Parameters for each neuron type
-
property
node_types
¶ List of Recognized Node Types
-
property
osn_bsgs
¶
-
property
osn_otps
¶
-
osns
: Iterable[Iterable[str]] = None¶ Ids of OSNs for each channel
This is a list of list, where the outer list correspond to
-
receptors
: Iterable[str] = None¶ Name of receptors of length NR
-
resting
: float = None¶ Resting OSN Spike Rates [Hz]
-
set_or_assert
(var, new_var, N)[source]¶ Set Variable or Check Dimensionality
If
var
to new_names if None and perform dimensionality checks- Parameters
var (Config.Attribute) – old variable value
new_var (Config.Attribute) – new variable value
N (numpy.ndarray) – dimensionality for the variable, could be multi-dimensional
- Return type
Config.Attribute
-
property
sigma
¶ Noisy Connor Stevens model Noise Level
-
exception
eoscircuits.antcircuits.circuit.
ANTException
[source]¶ Bases:
eoscircuits.basecircuit.EOSCircuitException
Base Antenna Exception
eoscircuits.antcircuits.model module¶
NeuroDriver Models and Utilities
-
class
eoscircuits.antcircuits.model.
NoisyConnorStevens
[source]¶ Bases:
object
Noisy Connor-Stevens Neuron Model
F-I curve is controlled by sigma parameter
Notes
sigma value should be scaled by sqrt(dt) as sigma/sqrt(dt) where sigma is the standard deviation of the Brownian Motion
-
params
= {'EK': -72.0, 'EL': -17.0, 'ENa': 55.0, 'Ea': -75.0, 'gK': 20.0, 'gL': 0.3, 'gNa': 120.0, 'ga': 47.7, 'hs': -12.0, 'ms': -5.3, 'ns': -4.3, 'refperiod': 1.0, 'sigma': 2.05}¶
-
states
= {'a': 1.0, 'b': 1.0, 'h': 1.0, 'm': 0.0, 'n': 0.0, 'refactory': 0.0, 'v1': -60.0, 'v2': -60.0}¶
-
-
class
eoscircuits.antcircuits.model.
OTP
[source]¶ Bases:
object
Odorant Transduction Process
-
params
= {'Imax': 150.159, 'a1': 45.0, 'a2': 199.574, 'a3': 2.539, 'b1': 0.8, 'b2': 51.887, 'b3': 0.9096, 'br': 1.0, 'c': 0.06546, 'dr': 10.0, 'gamma': 0.138, 'kappa': 9593.9, 'p': 1.0}¶
-
states
= {'duh': 0.0, 'uh': 0.0, 'v': 0.0, 'x1': 0.0, 'x2': 0.0, 'x3': 0.0}¶
-
Module contents¶
Antenna Circuit
This module supports:
Changing the affinity values of each of the odorant-receptor pairs characterizing the input of the Odorant Transduction Process.
Changing parameter values of the Biological Spike Generators (BSGs) associated with each OSN.
Changing the number of OSNs expressing the same Odorant Receptor (OR) type.