/*LFPsim - Simulation scripts to compute Local Field Potentials (LFP) from cable compartmental models of neurons and networks implemented in NEURON simulation environment.
LFPsim works reliably on biophysically detailed multi-compartmental neurons with ion channels in some or all compartments.
Last updated 12-March-2016 Developed by : Harilal Parasuram & Shyam Diwakar
Computational Neuroscience & Neurophysiology Lab, School of Biotechnology, Amrita University, India.
Email: harilalnavami@gmail.com
*/
-
Copy all LFPsim files and the directory into your NEURON model directory downloaded from ModelDb. Copy lfp.mod and mea.mod from LFPsim to the mechanism directory of the NEURON model.
-
Compile the model; if you had already compiled the model without LFPsim, include the LFPsim mod files and re-compile using "nrnivmodl" or "mknrndll".
-
Load your neuron or network model in NEURON.
-
On the terminal type: xopen("extracellular_electrode.hoc") to initiate LFPsim GUI interface.
-
Set the electrode properties in the GUI.
-
Run the simulation to reconstruct LFP.
A detailed step-by-step procedure is also listed in the How-To-LFPsim.pdf document.