Numerical integration of the i&f model
- raise f-I curve
- compare to analytical solution (direct integration)
- sketch (by hand!) 1d dynamics compatible with up/down states (see images below)
| sudo apt install libwebkitgtk-3.0-dev ffmpeg libsdl1.2-dev #bibliotecas do sitema necessárias para psychopy | |
| python3 -m venv teste_psychopy | |
| source teste_psychopy/bin/activate | |
| pip install pyqt5==5.14 # o pyqt mais recente está quebrado... | |
| pip install psychopy | |
| # atenção: no passo abaixo, vc precisa usar o pacote certo para sua versão do pyyhon | |
| # veja https://docs.google.com/document/d/1Hk2Cj2sUOtVAp4jyyCq2_aIdxM3kmkzNa4MW24il30o/ para detalhes | |
| pip install https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-18.04/wxPython-4.0.7.post2-cp36-cp36m-linux_x86_64.whl | |
| sudo apt install libusb-1.0-0-dev portaudio19-dev libasound2-dev #bibliotecas do sitema necessárias para psychtoolbox | |
| pip install psychtoolbox |
| # Fast Subsystem of the Nap-K-KM model | |
| dV/dt = (I - g_Na*minf(V)*(V-V_Na) - g_K*n*(V-V_K) - g_KM*o*(V-V_K) - g_leak*(V-V_leak))/C | |
| dn/dt = (ninf(V) - n)/tau | |
| v(0)=-16 | |
| n(0)=0.01 | |
| minf(v)=boltz(v,vhalf_minf,k_minf) | |
| ninf(v)=boltz(v,vhalf_ninf,k_ninf) | |
| boltz(v,vh,k)=1/(1+exp((vh-v)/k)) |
These are just suggestions. Trust your instincts!