-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbsf_model_run.m
37 lines (30 loc) · 1.13 KB
/
bsf_model_run.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
%% Neocortical slice model from Tomsett et al. 2014
bsf_tissue;
bsf_neurons;
bsf_connectivity;
bsf_recording;
bsf_simulation;
% Change this directory to where you would like to save the results of the
% simulation
RS.saveDir = '~/VERTEX_bsf_results/';
% Change these settings if you need to use fewer cores or a different
% parallel profile, or if you want to run in serial mode (this will take a
% long time)
SS.parallelSim = true;
SS.poolSize = 12;
SS.profileName = 'local';
% Initialise the network
[params, connections, electrodes] = initNetwork(TP, NP, CP, RS, SS);
% Run the simulation
runSimulation(params, connections, electrodes);
% Load the simulation results
Results = loadResults(RS.saveDir);
%%
% If you have experienced any problems when trying to run this code, please
% email Richard Tomsett: r _at_ autap _dot_ se
%% Reference
% Tomsett RJ, Ainsworth M, Thiele A, Sanayei M, Chen X et al. (2014)
% Virtual Electrode Recording Tool for EXtracellular potentials (VERTEX):
% comparing multi-electrode recordings from simulated and biological
% mammalian cortical tissue, Brain Structure and Function.
% doi:10.1007/s00429-014-0793-x