Striatal FSI and SPN oscillation model (Chartove et al. 2020)

 Download zip file 
Help downloading and running models
Our model consists of three interconnected populations of single or double compartment Hodgkin-Huxley neurons: a feedforward network of FSIs, and two networks of SPNs (the D1 receptor-expressing "direct pathway" subnetwork and the D2 receptor-expressing "indirect pathway" subnetwork).
1 . Chartove JA, McCarthy MM, Pittman-Polletta BR, Kopell NJ (2020) A biophysical model of striatal microcircuits suggests gamma and beta oscillations interleaved at delta/theta frequencies mediate periodicity in motor control PLOS Computational Biology 16:1-30
Citations  Citation Browser
Model Information (Click on a link to find other models with that property)
Model Type: Neuron or other electrically excitable cell;
Brain Region(s)/Organism: Striatum;
Cell Type(s): Neostriatum medium spiny direct pathway GABA cell; Neostriatum medium spiny indirect pathway GABA cell; Neostriatum fast spiking interneuron;
Channel(s): I Potassium; I M;
Gap Junctions: Gap junctions;
Receptor(s): Dopaminergic Receptor;
Transmitter(s): Dopamine; Gaba;
Simulation Environment: DynaSim;
Model Concept(s): Oscillations; Beta oscillations; Gamma oscillations; Theta oscillations;
Implementer(s): Chartove, Julia A K [chartove at bu dot edu];
Search NeuronDB for information about:  Neostriatum medium spiny direct pathway GABA cell; Neostriatum medium spiny indirect pathway GABA cell; Dopaminergic Receptor; I M; I Potassium; Dopamine; Gaba;
%APPEND_PDFS Appends/concatenates multiple PDF files
% Example:
%   append_pdfs(output, input1, input2, ...)
%   append_pdfs(output, input_list{:})
%   append_pdfs test.pdf temp1.pdf temp2.pdf
% This function appends multiple PDF files to an existing PDF file, or
% concatenates them into a PDF file if the output file doesn't yet exist.
% This function requires that you have ghostscript installed on your
% system. Ghostscript can be downloaded from:
% IN:
%    output - string of output file name (including the extension, .pdf).
%             If it exists it is appended to; if not, it is created.
%    input1 - string of an input file name (including the extension, .pdf).
%             All input files are appended in order.
%    input_list - cell array list of input file name strings. All input
%                 files are appended in order.

% Copyright: Oliver Woodford, 2011

% Thanks to Reinhard Knoll for pointing out that appending multiple pdfs in
% one go is much faster than appending them one at a time.

% Thanks to Michael Teo for reporting the issue of a too long command line.
% Issue resolved on 5/5/2011, by passing gs a command file.

% Thanks to Martin Wittmann for pointing out the quality issue when
% appending multiple bitmaps.
% Issue resolved (to best of my ability) 1/6/2011, using the prepress
% setting

% 26/02/15: If temp dir is not writable, use the output folder for temp
%           files when appending (Javier Paredes); sanity check of inputs

function append_pdfs(varargin)

if nargin < 2,  return;  end  % sanity check

% Are we appending or creating a new file
append = exist(varargin{1}, 'file') == 2;
output = [tempname '.pdf'];
    % Ensure that the temp dir is writable (Javier Paredes 26/2/15)
    fid = fopen(output,'w');
    isTempDirOk = true;
    % Temp dir is not writable, so use the output folder
    [dummy,fname,fext] = fileparts(output); %#ok<ASGLU>
    fpath = fileparts(varargin{1});
    output = fullfile(fpath,[fname fext]);
    isTempDirOk = false;
if ~append
    output = varargin{1};
    varargin = varargin(2:end);
% Create the command file
if isTempDirOk
    cmdfile = [tempname '.txt'];
    cmdfile = fullfile(fpath,[fname '.txt']);
fh = fopen(cmdfile, 'w');
fprintf(fh, '-q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile="%s" -f', output);
fprintf(fh, ' "%s"', varargin{:});
% Call ghostscript
ghostscript(['@"' cmdfile '"']);
% Delete the command file
% Rename the file if needed
if append
    movefile(output, varargin{1});