Giter Club home page Giter Club logo

comptelab / serialnmda Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 2.0 10.41 MB

This repository contains all codes necessary to reproduce figures and results reported in Stein, Barbosa et al. (Nature Communications, 2020) from the raw data acquired in human behavioral experiments (data included in the repository), and from the relevant model simulations.

Home Page: https://www.nature.com/articles/s41467-020-18033-3

License: GNU General Public License v3.0

Python 100.00%
working-memory schizophrenia spiking-neural-network mixed-models rpy2 anti-nmdar-encephalitis

serialnmda's Introduction

serialNMDA

This repository contains all codes necessary to reproduce figures and results reported in Stein, Barbosa et al. (Nature Communications, 2020) from the raw data acquired in human behavioral experiments (data included in the repository), and from the relevant model simulations.

data

data/ contains

  • behavioral data from the baseline session for all subjects ("behavior.pkl"), and behavioral data for all subjects that completed baseline and follow-up sessions ("behavior_retest.pkl")
  • "DOG1_par_exp_1000.npy" and "DOG1_par_sims_1000.npy" store the optimal parameter values found by crossvalidation ("codes/model_fits_behavior.py" and "codes/model_fits_modeling.py") for the derivative of Gaussian (DoG) basis function used to model serial dependence in the experimental data and the simulations, respectively.
  • subfolders "Fig_x/" contains preprocessed data for plotting, used by scripts "codes/FIGUREx.py"

please note: raw simulation outputs for all parameter values (as used as inputs to "model_fits_modeling.py") imply large files that are not included in this repository. All simulations can be reproduced with codes or sent upon request

codes

codes/ contains

  • codes that plot main figures 1-3: "FIGUREx.py"
  • frequently used functions: "helpers.py"
  • code that performs crossvalidation of hyperparameter sigma in DoG basisfunction for experimental data: "model_fits_behavior.py"
  • code that performs crossvalidation of hyperparameter sigma in DoG basisfunction for simulations, and estimates bias strength across all simulated parameter values: "model_fits_modeling.py"
  • code that estimates all models of behavior for the baseline session, reported in the main text: "models_behavior.py"
  • code that estimates longitudinal effects in behavior: "models_behavior_retest.py"
  • codes used to run simulations on cluster: "wm_model_input_Apre.py", "wm_model_input_gei.py", "wm_model_input_gee.py"
  • code that runs a single simulation including figures: "wm_model_stp_modeling.py"

please note: raw simulation outputs for all parameter values (as used as inputs to "model_fits_modeling.py") imply large files that are not included in this repository. All simulations can be reproduced with codes or sent upon request

questions?

If you still have open questions, do not hesitate to contact Albert Compte (corresponding author) or Heike Stein (for codes and data)

serialnmda's People

Contributors

heikestein avatar

Stargazers

 avatar  avatar

Watchers

 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.