Spiking neuron model of the basal ganglia (Humphries et al 2006)

 Download zip file 
Help downloading and running models
A spiking neuron model of the basal ganglia (BG) circuit (striatum, STN, GP, SNr). Includes: parallel anatomical channels; tonic dopamine; dopamine receptors in striatum, STN, and GP; burst-firing in STN; GABAa, AMPA, and NMDA currents; effects of synaptic location. Model demonstrates selection and switching of input signals. Replicates experimental data on changes in slow-wave (<1 Hz) and gamma-band oscillations within BG nuclei following lesions and pharmacological manipulations.
1 . Humphries MD, Stewart RD, Gurney KN (2006) A physiologically plausible model of action selection and oscillatory activity in the basal ganglia. J Neurosci 26:12921-42 [PubMed]
Citations  Citation Browser
Model Information (Click on a link to find other models with that property)
Model Type: Realistic Network;
Brain Region(s)/Organism: Basal ganglia;
Cell Type(s): Neostriatum medium spiny direct pathway GABA cell; Subthalamus nucleus projection neuron; Globus pallidus neuron; Abstract integrate-and-fire leaky neuron;
Gap Junctions:
Receptor(s): Dopaminergic Receptor;
Transmitter(s): Dopamine; Gaba; Glutamate;
Simulation Environment: MATLAB;
Model Concept(s): Oscillations; Parkinson's; Action Selection/Decision Making; Sleep; Rebound firing;
Implementer(s): Humphries, Mark D [m.d.humphries at shef.ac.uk];
Search NeuronDB for information about:  Neostriatum medium spiny direct pathway GABA cell; Dopaminergic Receptor; Dopamine; Gaba; Glutamate;
function e_fname = extract_spikes(r_fname,pathroot,structures,n_cells,threshold,seed,varargin)

% EXTRACT_SPIKES samples spike trains from results
%   EXTRACT_SPIKES(R,PATH,S,N,T,SEED) extracts N_i spikes trains from the ith nucleus named in cell array S
%   (where the names must match the indices arrays e.g. SD1, STN etc) from the results file supplied
%   in string R, on the path PATH. The spike trains selected 
%   will have a mean firing rate (over entire period) of at least T. (N is thus a vector). The 
%   random number generator is initiated with SEED - this allows for
%   recallable random cell selection!
%   EXTRACT_SPIKES(..,P,FLAG) where P is a string creating a meaningful
%   prefix for the extracted results file
%   Set options using FLAG: 
%       'c' -  NOT IMPLEMENTED YET adding this flag ensures that N spikes trains are sampled from each 
%             channel in each structure, and are saved in accordingly named arrays (set to '' to omit). 
%   Returns the name of the file produced.
%   Mark Humphries 4/1/2006

prefix = '';


if nargin >= 7 
    if ~isstr(varargin{1})
        error('Supplied filename prefix is not a string')
        prefix = varargin{1};

% load the simulation results file

t_out_t = double(out_t) .* dt; % convert to time

n_structures = length(structures);

if n_structures ~= length(n_cells)
    error('Cells-per-structure and structure arrays do not match');

time_now = clock;
unique_name = datestr(time_now,30);  

e_fname = [prefix '_' unique_name '_extracted_results'];
path_fname = [pathroot e_fname '.mat'];

for loop = 1:n_structures
    idxs = structures{loop};
    for loop2 = 1:n_cells(loop)
        has_spikes = 0; 
        eval(['n_possibles = length(' idxs ');']); 
        rand_idx = randperm(n_possibles);
        counter = 1;    % counter for the permuted sequence - if cell already discarded, no need to test it again!
        while ~has_spikes 
           eval(['mean_rate = sum(out_n==' idxs '(rand_idx(counter))) / time_seconds;']);
           counter = counter + 1;  
           if mean_rate >= threshold has_spikes = 1; end
           if counter > n_possibles error('Not enough cells had firing rates that exceeded the extraction threshold'); end            
        eval(['ts = t_out_t(out_n == ' idxs '(rand_idx(counter)));']);
        eval([idxs '_times{loop2} = ts;']);     % generate cell array of spike trains for use in the analysis routines
    % save newly created cell arrays
    if loop > 1
        eval(['save(path_fname,''' idxs '_times'',''-append'');'])
        eval(['save(path_fname,''' idxs '_times'');']);

% also save the necessary simulation data (including the input arrays)
        'n_channels','n_neurons','n_sources','n_inputs','neurons_per_nucleus','neurons_per_channel', 'n_nuclei',...
        't_on', 't_off', 'step_size', 'switches',...
   if exist('fast_weights')