-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added code and test case for window baseline normalization.
- Loading branch information
Showing
4 changed files
with
111 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
{ | ||
"Metadata": { | ||
"transcriber": "Upi", | ||
"organization": "NCBS", | ||
"email": "[email protected]", | ||
"source": { | ||
"sourceType": "other", | ||
"doi": "0", | ||
"authors": "None", | ||
"journal": "None. This is a purely fictional _experiment_ for the purposes of testing findSim", | ||
"year": 0, | ||
"figure": "" | ||
}, | ||
"testModel": "models/loadGABAR.py", | ||
"testMap": "models/loadGABAR.json" | ||
}, | ||
"Experiment": { | ||
"design": "TimeSeries", | ||
"species": "rat", | ||
"cellType": "hippocampal CA1 pyramidal neuron", | ||
"notes": "Test removal of baseline in voltage clamp peak estimate" | ||
}, | ||
"Stimuli": [ | ||
{ | ||
"timeUnits": "sec", | ||
"quantityUnits": "Hz", | ||
"entity" : { | ||
"name": "synInput", | ||
"alias": "synInput" | ||
}, | ||
"field": "rate", | ||
"data": [ | ||
[0,5] | ||
] | ||
}, | ||
{ | ||
"timeUnits": "sec", | ||
"quantityUnits": "mV", | ||
"entity" : { | ||
"name": "soma", | ||
"alias": "soma" | ||
}, | ||
"field": "Vclamp", | ||
"data": [ | ||
[0,-65.0], | ||
[0.001,0.0], | ||
[0.3,-65.0] | ||
] | ||
} | ||
], | ||
"Readouts": { | ||
"timeUnits": "sec", | ||
"quantityUnits": "ratio", | ||
"entity" : { | ||
"name": "vclamp", | ||
"alias": "vclamp" | ||
}, | ||
"field": "current", | ||
"window": {"startt": -0.010, "endt": 0.005, "dt": 0.0005, | ||
"operation": "max", "baseline": "min" | ||
}, | ||
"normalization": { | ||
"entity" : { | ||
"name": "vclamp", | ||
"alias": "vclamp" | ||
}, | ||
"sampling": "start" | ||
}, | ||
"data": [ | ||
[0.21, 1, 0], | ||
[0.23, 1.2, 0], | ||
[0.25, 1.2, 0], | ||
[0.27, 1.2, 0], | ||
[0.29, 1.2, 0] | ||
] | ||
}, | ||
"Modifications": { | ||
"subset": [ | ||
{"name":"all"} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"all":["all"], | ||
"soma":["elec/soma"], | ||
"synInput":["elec/soma/gabaR/sh/synapse/synInput_rs"], | ||
"synapse":["elec/soma/gabaR/sh/synapse"] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import moose | ||
import rdesigneur as rd | ||
def load( scaleParam, chemFile ): | ||
rdes = rd.rdesigneur( | ||
turnOffElec = True, | ||
elecDt = 5e-5, | ||
chanProto = [['make_GABA()', 'gabaR']], | ||
chanDistrib = [ | ||
['gabaR', 'soma', 'Gbar', '1' ]], | ||
stimList = [['soma', '1','gabaR', 'periodicsyn', '50 * (t > 0.1)']], | ||
) | ||
return rdes | ||
|
||
def build( rdes ): | ||
rdes.buildModel() | ||
#moose.le( '/model/elec/soma/gabaR/sh/synapse/synInput_rs' ) |