Skip to content

Code for "Network structure of neural systems supporting cascading dynamics predicts stimulus propagation and recovery" (Ju et al., 2020)

License

Notifications You must be signed in to change notification settings

harangju/cascades

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cascades

This repository contains code for simulation and analysis used in Ju et al. 2020 (Network structure of neural systems supporting cascading dynamics predicts stimulus propagation and recovery).

Setup

Code developed using MATLAB 2018a and python 3.7.3. For help using python in MATLAB, see system configuration.

Dependencies

Use

The repository's high-level structure is:

├──analysis
    ├──cascades
    ├──depracated code
    ├──dynamics
    ├──graph
    ├──information
    └──markov
├──dynamics
    ├──inputs
    └──models
└──figures
    └──supplement

Figure generation

To generate the figures from pre-generated data,

  1. Set source_data_dir to the directory containing the source data (e.g. source_data_dir = '/Users/username/Downloads/Source Data';). Download the pre-generated source data from figshare.
  2. Run the scripts in figures.

To generate all figures from scratch,

  1. Clear the variable source_data_dir (e.g. clear source_data_dir).
  2. For figures 2, 3, and 4, set emp_data_dir to the directory containing the empirical data (e.g. emp_data_dir = '/Users/username/Downloads/data';). Download the empirical data from crcns. This may take a long time for some figures.
  3. Run the scripts in figures.

About

Code for "Network structure of neural systems supporting cascading dynamics predicts stimulus propagation and recovery" (Ju et al., 2020)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published