Giter Site home page Giter Site logo

delvendahl / scn2a_simulations_hmg Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 4.49 MB

Model from Asadollahi et al. Hum. Mol. Genet. 2023

License: MIT License

AMPL 69.92% Python 30.08%
ion-channels neuron-model action-potential neurodevelopmental-disorders epilepsy

scn2a_simulations_hmg's Introduction

Pyramidal neuron model for studying SCN2A mutations

minimal Python version NEURON version citation

This repository contains NEURON and Python files to simulate the effect of different SCN2A mutations in a reconstructed mouse cortical L5 pyramidal neuron. This model was used to study the effect of sodium channel mutations on the firing rate of a pyramidal neuron in the following publication (Asadollahi et al. 2023):

Asadollahi R., Delvendahl I., et al. (2023) Pathogenic SCN2A variants cause early-stage dysfunction in patient-derived neurons. Human Molecular Genetics, ddad048 (doi:10.1093/hmg/ddad048)

The model was constructed using the NEURON modeling language and is based on the implementation by Ben-Shalom et al. 2017 of the model that accompanied the paper "State and location dependence of action potential metabolic cost" (Hallermann et al. 2012).

Simulations were run with NEURON 8.0 in Python 3.8.12 (NEURON can be installed via pip install neuron). Python dependencies: neuron, numpy, scipy (run pip install -r requirements.txt)

To run simulations:

  • compile all .mod files (cd to directory and execute nrnivmodl)
  • in run_simulation.py, select which model to run by setting the name of the .hoc file to be loaded (from "/sim_files/" folder), e.g.:
    name_of_sim = 'youngPN'
  • In the paper, the different simulation runs were the following:
    • WT (100% SCN2A): "youngPN"
    • 50% SCN2A: "youngPN_scn2a_ais_50perc"
    • 0% SCN2A: "youngPN_scn2a_ais_0perc"
    • E1803G: "youngPN_scn2a_ais_E1803G_het_2"
  • adjust current injection amplitude and number of increasing sweeps, if desired:
    currentstep = 0.1
    sweeps = 24
  • run the file run_simulation.py
  • the file run_simulation_MP.py can be used for running multiple simulations in parallel using multiprocessing
  • the file plot_results.py can be used for plotting the results

The simulation output is saved as .txt files into the folder "Results/". Subfolders are created for each independent condition. Output files are:

  • "spiking_results.txt" -> current injection, spike numbers, threshold, amplitude and spike delay, spikes AIS, threshold AIS, amplitude AIS, soma I_Na, AIS_I_Na
  • "soma_AP_traces.txt" -> voltage traces of the soma
  • "soma_Na_current.txt" -> Na current traces (from soma)
  • "ais_Na_current.txt" -> Na current traces (from AIS)

Contact: [email protected]

scn2a_simulations_hmg's People

Contributors

delvendahl avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.