\documentclass[a4paper,12pt,pdftex]{exam}

\newcommand{\ptitle}{Cellular properties}
\input{../header.tex}
\firstpagefooter{Supervisor: Jan Grewe}{phone: 29 74588}%
{email: jan.grewe@uni-tuebingen.de}

\begin{document}

\input{../instructions.tex}


%%%%%%%%%%%%%% Questions %%%%%%%%%%%%%%%%%%%%%%%%%
\section*{Estimating cellular properties of different cell types.}
You will analyze data from intracellular \textit{in vitro} recordings
of pyramidal neurons from two different maps of the electrosensory
lateral line lobe (ELL) of the weakly electric fish
\textit{Apteronotus leptorhynchus}. The membrane resistance and the
membrane capacitance are fundamental properties of a neuron that have
a great influence on the coding properties of the cell. They are
typically estimated by injecting pulses of hyperpolarizing current
into the cell. From the respective responses we can calculate the
membrane resistance by applying Ohm's law ($U = R \cdot I$). To
estimate the membrane capacitance we need to fit an exponential
function of the form $y = a \cdot e^{(-x/\tau)}$ to the response to get the
membrane time-constant $\tau$. With the knowledge of $R$ and $\tau$ we
can estimate the capacitance $C$ from the simple relation $\tau = R
\cdot C$.

\begin{questions}
  \question{} The accompanying dataset (input\_resistance.zip)
  contains datasets from cells originating from two different parts of
  the ELL, the medial segment (MS) and the centro-medial segment
  (CMS). Each mat-file contains four variables. (i) \textit{V} the
  average membrane potential of 20 repeated current injections, (ii)
  \textit{V\_std} the across-trial standard deviation of the
  responses, (iii) \textit{t} a vector representing the recording
  time (in ms), and (iv) \textit{I} a vector containing the time-course of the
  injected current.
  
  \begin{parts}
    \part{} Create plots of the raw data. Plot the average response as
    a function of time. This plot should also show the across-trial
    variability. Also plot the time-course of the injected
    current. \\[0.5ex]
    \part{} Estimate the input resistances of each cell.\\[0.5ex]
    \part{} Fit an exponential to the initial few milliseconds of the
    current-on response. Use a gradient-descent approach to do
    this.\\ It is very important to understand the exponential decay
    function. If you are unsure, play with the function and understand
    how the parameters influence the decay. (Hint: It might be
    necessary to transform the data a bit.)\\[0.5ex]
    \part{} Estimate the membrane capacitance of each cell. Compare
    $R$, $I$ and $\tau$ between cells of the two segments.\\[0.5ex]
    \part{} Optional: use a double exponential and see, if the fit improves.
  \end{parts}
\end{questions}

\end{document}