-
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.
made a new example that makes a pyloric net
cleaned up some demos
- Loading branch information
Showing
9 changed files
with
128 additions
and
102 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,64 @@ | ||
|
||
|
||
%{ | ||
_ _ _ | ||
__ _____ | | ___ | |_| | | ||
\ \/ / _ \| |/ _ \| __| | | ||
> < (_) | | (_) | |_| | | ||
/_/\_\___/|_|\___/ \__|_| | ||
## PyloricNet | ||
**Syntax** | ||
```matlab | ||
x = xolotl.examples.PyloricNet(); | ||
``` | ||
**Description** | ||
makes a three-cell model of the pyloric network | ||
following Prinz et al. Nat. Neuro. | ||
%} | ||
|
||
|
||
function x = PyloricNet() | ||
|
||
|
||
% the order here doesn't matter -- everything will be re-arranged | ||
% alphabetically | ||
channels = {'prinz/NaV','prinz/CaT','prinz/CaS','prinz/ACurrent','prinz/KCa','prinz/Kd','prinz/HCurrent','Leak'}; | ||
|
||
|
||
x = xolotl; | ||
|
||
x.add('compartment','AB'); | ||
x.AB.add('prinz/CalciumMech'); | ||
|
||
for i = 1:length(channels) | ||
x.AB.add(channels{i}); | ||
end | ||
|
||
x.add(copy(x.AB),'LP') | ||
x.add(copy(x.AB),'PY') | ||
|
||
% configure gbars | ||
x.AB.set('*gbar', [500, 60, 25, .1, 50, 1000, 0, 1000]) | ||
x.LP.set('*gbar', [200, 40, 0, .5, 0, 250, 0.3, 1000]) | ||
x.PY.set('*gbar', [500, 20, 24, .5, 0, 1250, 0.1, 1000]) | ||
|
||
x.set('*Leak.E',-50) | ||
|
||
|
||
% set up synapses as in Fig. 2e | ||
x.connect('AB','LP','Chol','gmax',30); | ||
x.connect('AB','PY','Chol','gmax',3); | ||
x.connect('AB','LP','Glut','gmax',30); | ||
x.connect('AB','PY','Glut','gmax',10); | ||
x.connect('LP','PY','Glut','gmax',1); | ||
x.connect('PY','LP','Glut','gmax',30); | ||
x.connect('LP','AB','Glut','gmax',30); | ||
|
||
x.t_end = 5e3; |
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
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
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
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,52 @@ | ||
% test script for matlab wrapper | ||
|
||
% this sets up the pyloric network | ||
% as in Fig 2e of this paper: | ||
% Prinz ... Marder Nat Neuro 2004 | ||
% http://www.nature.com/neuro/journal/v7/n12/abs/nn1352.html | ||
|
||
x = xolotl.examples.PyloricNet; | ||
|
||
x.integrate; | ||
|
||
|
||
[V, ~, ~, currs, syns] = x.integrate; | ||
|
||
|
||
C = x.find('compartment'); | ||
|
||
x.plot; | ||
drawnow | ||
|
||
figure('outerposition',[100 100 1000 900],'PaperUnits','points','PaperSize',[1000 900]); hold on | ||
subplot(3,1,1); hold on | ||
plot(currs(:,1:7)) | ||
ylabel('I (nA)') | ||
title(C{1}) | ||
legend(x.(C{1}).find('conductance')) | ||
|
||
subplot(3,1,2); hold on | ||
plot(currs(:,8:15)) | ||
title(C{2}) | ||
ylabel('I (nA)') | ||
legend(x.(C{2}).find('conductance')) | ||
|
||
subplot(3,1,3); hold on | ||
plot(currs(:,16:23)) | ||
title(C{3}) | ||
ylabel('I (nA)') | ||
legend(x.(C{3}).find('conductance')) | ||
|
||
|
||
drawnow | ||
|
||
figure('outerposition',[100 100 1000 500],'PaperUnits','points','PaperSize',[1000 500]); hold on | ||
|
||
plot(syns) | ||
ylabel('I (nA)') | ||
title('synaptic currents') | ||
|
||
drawnow | ||
|
||
|
||
figlib.pretty() |
This file was deleted.
Oops, something went wrong.