From 94c228fc41a4dc474d0bd92ca695e3ea0c149f32 Mon Sep 17 00:00:00 2001 From: Nate Sutton Date: Wed, 22 Mar 2023 18:28:13 -0400 Subject: [PATCH] added CARLsim readme --- CARLsim_version/iz_fp_eval/README.md | 17 +++++++++++++++++ README.md | 5 ++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 CARLsim_version/iz_fp_eval/README.md diff --git a/CARLsim_version/iz_fp_eval/README.md b/CARLsim_version/iz_fp_eval/README.md new file mode 100644 index 0000000..891d0a9 --- /dev/null +++ b/CARLsim_version/iz_fp_eval/README.md @@ -0,0 +1,17 @@ +# CARLsim Version of Izhikevich Model Refractory Period Evaluation Code + +This code is designed for evaluating CARLsim's implementation of Izhikevich model (IM) refractory period (RP) code. This code has been tested with CARLsim6. + +Usage:
+In CARLsim, create a new project with the name "iz_fp_eval". Copy the files in this folder into that project's folder. In the build folder for the project copy the file rebuild_stellate.sh into that. That is a Linux script that rebuilds the project and runs it with Stellate cell parameters. + +The compiled CARLsim code must be run with 9 parameters, which represent 9 IM params. They are in the order: C,k,vr,vt,a,b,vpeak,c,d. Scripts to run the software can be saved with different neurons' IM parameters, e.g., a Stellate cell. Example parameters can be found on hippocampome.org/php/Izhikevich_model.php. + +This software was designed to be used with the Hippocampome feature branch of CARLsim which includes a IM RP. This is availible at hippocampome.org/CARLsim. + +The RP time period can be set by the last parameter in the setNeuronParameters() function. The value is the number of milliseconds the RP should occur for. + +Plotting:
+A matlab plotting script is provided in /scripts/plot_results.m. It can be run in Matlab by running the script run_plot.m. The directory "build_dir" should be in the base CARLsim directory for this project. This directory should be a softlink to the folder that is the build directory for the project. This can be done in linux by "ln -s build_dir" where is the folder path. This softlinked directory is used in the plotting script to find the simulation results for plotting. An alternative would be to include the full directory path to the build directory in the plotting script instead of the softlink. + +Plotting uses functions from CARLsim's Offline Analysis Toolkit (OAT). Users should update addpath() in initOAT.m to direct to where the files for OAT are located on each of their computers. \ No newline at end of file diff --git a/README.md b/README.md index 6245b97..9cf2ff3 100644 --- a/README.md +++ b/README.md @@ -33,4 +33,7 @@ Apache Commons Math libraries process IM results by returning V and U derivative Plotting the results with different parameters including RP time can help visually verify that the RP is causing the voltage changes that are expected. -Specific conditions are included to help with the derivative control occuring at the right times and not wrong times. "t<=timeMax" is included to allow the RP to end once current is no longer supplied. This causes V to be able to go below vMin after that time which matches expected voltage activity better. "V0 +The results from the Java-based IM code can be compared to those from the C++-based CARLsim code. The CARLsim code is in the directory CARLsim_version. It has been tested to work with CARLsim6. The software includes a Matlab plotting script that can be used to create comparison plot with the Java version. Navigate to the iz_fp_eval directory to find a readme file for running that version. \ No newline at end of file