External Tufted Cell Model (Ryan Viertel, Alla Borisyuk 2019)

 Download zip file 
Help downloading and running models
Accession:240364
ODE model of the Mammalian External Tufted Cell
Reference:
1 . Viertel R, Borisyuk A (2019) A Computational model of the mammalian external tufted cell. J Theor Biol 462:109-121 [PubMed]
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:
Cell Type(s): Olfactory bulb main tufted cell external;
Channel(s): I Na,p; I h; I Na,t; I K; I Ca,p;
Gap Junctions:
Receptor(s):
Gene(s):
Transmitter(s):
Simulation Environment: MATLAB; C or C++ program; XPP;
Model Concept(s):
Implementer(s):
Search NeuronDB for information about:  I Na,p; I Na,t; I K; I h; I Ca,p;
#include <stdio.h>

void readTrace(FILE* trace, FILE* spikes, FILE* metrics)
{

  double t,V,w,Vprev,freq = 0.0,lastSpike = -99.0;
  int count = 0;
  int status;

  status = fscanf(trace,"%le %le %le\n",&t,&V,&w);
  Vprev = V;

  while (status != EOF)
  {
    if(Vprev < 0.0 && V > 0.0)
    {
      if (lastSpike != -99.0)
        freq += 1.0/(t - lastSpike)*1000;
      fprintf(spikes,"%le\n",t);
      lastSpike = t;
      count++;
    }
    Vprev = V;
    status = fscanf(trace,"%le %le %le\n",&t,&V,&w);
  }

  if (count > 1)
    freq = freq/(count-1);
  else
    freq = 0;

  fprintf(metrics,"%le %lf\n",freq, 0.023);
}

Loading data, please wait...